JSON Properties Order Change (Jackson)
JSON Properties Order Change (Jackson)
@JsonPropertyOrder annotation use to define the order of JSON properties while serialization from Java to JSON. This annotation always use on class level.
@JsonPropertyOrder on Class Level
@JsonPropertyOrder({"firstName","lastName","rollNumber"}) public class StudentDetail { @JsonProperty(value = "id") private int rollNumber; @JsonProperty(value = "firstName") private String…
View On WordPress











