fastjson 解析数组,数组中的键值对顺序错乱,和返回的顺序不一致

bvuwiixz  于 2021-11-27  发布在  Java
关注(0)|答案(2)|浏览(356)

其中的单个元素是这样
{ "1000以下":21142, "1000以下占比":"6.62%", "1000以下整体占比":"--", "1000-2000":170937, "1000-2000占比":"53.55%", "1000-2000整体占比":"--", "2000-3000":73606, "2000-3000占比":"23.06%", "2000-3000整体占比":"--", "3000以上":53543, "3000以上占比":"16.77%", "3000以上整体占比":"--" }
解析后{ "1000-2000":1008, "1000-2000占比":"43.92%", "1000-2000整体占比":"0.59%", "1000以下":551, "1000以下占比":"24.01%", "1000以下整体占比":"2.61%", "2000-3000":463, "2000-3000占比":"20.17%", "2000-3000整体占比":"0.63%", "3000以上":273, "3000以上占比":"11.9%", "3000以上整体占比":"0.51%", "areaId":"03CBCE84-2DC8-490F-9AD4-7FCB19B77EFE", "areaName":"信阳固始" }

相关问题