JSON对象和string的相互转换

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

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

你可能感兴趣的:(JSON对象和string的相互转换)