//JSONObject默认属性无序
JSONObject jsonObject = new JSONObject();
// 设置有序,绝对按put顺序组织toJSONString()
JSONObject jsonObject = new JSONObject(true);
// 有序的jsonObjectMap
jsonObjectMap = JSON.parseObject(jsonString, LinkedHashMap.class, Feature.OrderedField);
// 有序的jsonObjectKeys
jsonObjectKeys = gisOperationalItemsMap.keySet();
来源:CSDN
作者:风铃峰顶
链接:https://blog.csdn.net/haoranhaoshi/article/details/103650941