JSONObject按插入顺序排序


import com.alibaba.fastjson.JSONObject;

1. JSONObject json= new JSONObject(true);

2. JSONObject json = JSONObject.parseObject(content, Feature.OrderedField); // 字段排序