首页 > 技术文章 > JSONObject.toJSONString(map)

michaelcnblogs 2019-09-16 19:26 原文

Map<Integer, List<Integer>> map = new LinkedHashMap<>();
map.put(1,ddzCard.getOneSendCardList());
String json = JSONObject.toJSONString(map);
System.out.println("json:"+json);

推荐阅读