class Bean
{
private String x,y,z,a,b,c;
//Getters & Setters
}
Using struts2 json plugin, the json that gets generated for the above bean is in Lexicographical order
This [reference], says that since JDK 6 it is supported in declaration order, but in JSON response, I see the fields arranged in lexicographic order.
Is there any way to achieve declaration order in the generated JSON ?