Public class aaa {
@ JSONField (name="b1")
Private String b1.
@ JSONField (name="a1")
Private String a1.
}
Used
1, @ JSONField (name="b1")
2, @ JSONField (ordinal=2)
3, @ JSONField (serialize=false)
It is no effect, how about this then he will let his, in my class order to output
CodePudding user response:
@ jsonfield (name="b1", ordinal=1)Private String b1.
@ jsonfield (name="a1", the ordinal=2)
Private String a1.
CodePudding user response:
No effect, still press, name do sort, not my according to set the order of the rowCodePudding user response:
You can refer to the following posthttps://www.oschina.net/question/2336560_229478? Sort=default& p=1