Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Does not honor DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY #89

Closed
neilmcguigan opened this issue May 13, 2016 · 1 comment
Closed

Comments

@neilmcguigan
Copy link

neilmcguigan commented May 13, 2016

Should be able to have

enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);

class Foo {
    public Multimap<String,String> bar;
}

with JSON

{
  bar: "qux"
}

However, this throws exception:

JsonMappingException: Expecting START_ARRAY, found VALUE_STRING

Please note that this works:

class Foo {
    List<String> bar;
}

with JSON:

{
  bar: "qux"
}

when enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);

@cowtowncoder
Copy link
Member

Thank you for reporting this! Moved this to FasterXML/jackson-datatypes-collections#6

since this repository is deprecated (but is retained to be able to publish older versions)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants