@XMLElementWrapper issue with com.fasterxml.jackson JacksonJaxbJsonProvider
I am trying to get the correct JSON for public class MyTestResponse { @XmlElementWrapper(name = "data") @XmlElement(name = "values") public List<String> test = Arrays.asList("Sidney"); } I now get "values": [ "Sidney" ], instead of "data":{ "values": [ "Sidney" ] }, So the wrapper element "data" is not present. I am using com.fasterxml.jackson stack (2.8.6) inside ServiceMix 7 M3. My JSON provider extends com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider: import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.MapperFeature; import com