目录 1、JSON转String2、String转JSON 1、JSON转String var user = {name: '张三', age: 18} JSON.stringify(user) /// ---> '{"name":"张三","age":18}' 2、String转JSON var user = '{"name":"张三","age":18}' JSON.parse(user) // ---> {name: '张三', age: 18}