1.后端json字符串转Map
Map maps = (Map)JSON.parse(rest);
Map m1=(Map)maps.get("key");
m1.put("key",value);
2.后端对象转json
Object a=new Object();
JSON.toJSONString(a);
Date a=new Date();
JSON.toJSONStringWithDateFormat("YYYY-MM-dd");
3.前端Object转json
var obj;
JSON.stringify(obj);