Returns an int value to set the order of fields in the result.
Note: It has a lower priority than field.order.with, and it's generally not recommended to use them at the same time.
field.order=#order
field.order=@com.fasterxml.jackson.annotation.JsonProperty#index
Select in the recommended configurations
field.order=@com.fasterxml.jackson.annotation.JsonProperty#index
TestJsonFieldBean.java
public class TestJsonFieldBean {
@JsonProperty(value = "a", index = 99)
private Long propertyA;
private Long propertyB;
@JsonProperty(value = "c", index = 0)
private Long propertyC;
//constructors...
//getters...
}
name | type |
---|---|
c | integer |
propertyB | integer |
a | integer |