JSONObject按插入顺序排序

import com.alibaba.fastjson.JSONObject;

1. JSONObject json= new JSONObject(true);

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

posted @ 2021-12-11 10:39  仓鼠爱画方格子  阅读(650)  评论(0编辑  收藏  举报