string与json ,map与json的转换

Map<String, Object> sendDateMap
// map转json对象
String sendDateStr = JSON.toJSONString(sendDateMap);(jsOn格式的)


Map<String, Object> resultMap = new HashMap<String,Object>();
// 定义返回结果
String resultStr = "";
//string转map
resultMap = JsonUtils.parseJson2Map(resultStr);(jsOn格式的)
原文地址:https://www.cnblogs.com/xiaoniuniu886/p/9948581.html