I am trying to upgrade the Jackson in my project from 2.2.2 to 2.3.0. I noticed that the serialization order of some of my classes have changed, which I discovered because of failing unit tests. In 2.3.0, when serializing a Java class's attributes to JSON, it appears that all attributes not marked with a @JsonProperty annotation are serialized first (in order that they appear), followed by all attributed marked with that annotation (in order that they appear from the top of the file). Whereas, in Jackson 2.2.2, the order doesn't appear to be as strict as I am experiencing.Can anyone please confirm my findings? Where exactly can I find online documentation about the default/implicit serialization order of ObjectMapper? I came across the JavaDoc of this class (http://fasterxml.github.io/jackson-annotations/javadoc/2.3.0/com/fasterxml/jackson/annotation/JsonPropertyOrder.html), but I highly doubt it contains the information that I am looking for. I think that the JsonPropertyOrder annotation is for when I want to specify my own custom order.
--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To post to this group, send email to jackso...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.