www.qcfz.net > linkEDhAshmAp怎么序列化

linkEDhAshmAp怎么序列化

Map linkedMap=new LinkedHashMap(); linked2.put("b","2"); linked2.put("a","1"); linked2.put("c","3"); String jsonStr=JSON.toJSONString(linkedMap); 输出jsonStr为{"a":"1","b":"2","c":"3"} 解决办法: 使用Gson(com.google.gson)序列化...

网站地图

All rights reserved Powered by www.qcfz.net

copyright ©right 2010-2021。
www.qcfz.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com