fastjson序列化亂序問題

一、初始化爲有序json對象json

JSONObject jsonOrdered= new JSONObject(true);

二、將String對象轉換過程當中,不要調整順序spa

JSONObject jsonOrdered = JSONObject.parseObject(jsonString, Feature.OrderedField);
相關文章
相關標籤/搜索