一、JSON.parse 函数 (JavaScript)
var jsontext = '{"firstname":"Jesper","surname":"Aaberg","phone":["555-0100","555-0120"]}';
var contact = JSON.parse(jsontext);
document.write(contact.surname + ", " + contact.firstname);
http://technet.microsoft.com/zh-cn/sysinternals/cc836466(v=vs.94)
二、JSON.stringify 函数 (JavaScript)
var requestJson = JSON.stringify({ key: 1, value: 3 });
var contact = new Object();
contact.firstname = "Jesper";
contact.surname = "Aaberg";
contact.phone = ["555-0100", "555-0120"];
var jsonText = JSON.stringify(contact);
http://technet.microsoft.com/zh-cn/sysinternals/cc836459(v=vs.94)