Skip to main content
added 15 characters in body
Source Link
Human
  • 10.8k
  • 15
  • 62
  • 87

Check out this article describing how to use the features of the jackson objectMapper to accomplish this.

https://github.com/FasterXML/jackson-dataformat-xml/issues/21

For me adding the following solved this issue

jsonMapper.configure(FeatureDeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);

Check out this article describing how to use the features of the jackson objectMapper to accomplish this.

https://github.com/FasterXML/jackson-dataformat-xml/issues/21

For me adding the following solved this issue

jsonMapper.configure(Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);

Check out this article describing how to use the features of the jackson objectMapper to accomplish this.

https://github.com/FasterXML/jackson-dataformat-xml/issues/21

For me adding the following solved this issue

jsonMapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);
Source Link
Ryan
  • 176
  • 1
  • 3

Check out this article describing how to use the features of the jackson objectMapper to accomplish this.

https://github.com/FasterXML/jackson-dataformat-xml/issues/21

For me adding the following solved this issue

jsonMapper.configure(Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);