1、初始化为有序json对象
JSONObject jsonOrdered= new JSONObject(true);
2、将String对象转换过程中,不要调整顺序
JSONObject jsonOrdered = JSONObject.parseObject(jsonString, Feature.OrderedField);
fastjson序列化乱序问题
原文:http://www.cnblogs.com/zhangpengshou/p/7814322.html