JSON对象和string的相互转换

JSON.stringify(obj) 将JSON转为字符串。

JSON.parse(string) 将字符串转为JSON格式。

原文地址:https://www.cnblogs.com/fhen/p/5225225.html