反序列化过程
json.parse(字符串)==》对象
从一个字符串中,解析出对象
var str = '{"a":"1","b":"2"}'; JSON.parse(str); 结果是:Object{a:"1",b:"2"}
序列化过程
json.stringify(对象)==》字符串
从一个对象中,解析出字符串
JSON.stringify({"a":"1","b":"2"}) 结果是:"{"a":"1","b":"2"}"