fastjson序列化乱序问题

1、初始化为有序json对象

JSONObject jsonOrdered= new JSONObject(true);

2、将String对象转换过程中,不要调整顺序

JSONObject jsonOrdered = JSONObject.parseObject(jsonString, Feature.OrderedField);
原文地址:https://www.cnblogs.com/zhangpengshou/p/7814322.html