toggle quoted messageShow quoted text
PropertyOrderStrategy.ANY doesn’t guarantee that properties will be serialised using natural order as they appear in your Java class. It guarantees that no sorting will be applied which may give you a little performance boost.
this is my first post. I read the json-b documentation at http://json-b.net/users-guide.html
and made some unit test to convert the fields of a POJO in the same order they are displayed in the POJO.
I could create the jsonb using different PropertyOrderStrategy
, however it does not work when I add the @JsonbProperty to one of the fields of my POJO. It works fine without this annotation.
Am I doing something wrong or is it a bug ?
JsonbConfig config = new JsonbConfig()
Jsonb jsonb = JsonbBuilder.create(config);