<script type="text/javascript" src="/downloadCamnpr/json2.js"></script>
<script type="text/javascript"n>
//把json 字符串转换成对象
var string = '{"name":"frank", "age":29, "birthday":"1978-1-1"}';
var user = JSON.parse(string);
alert(user.name);
alert(user.age);
alert(user.birthday);
//把对象转换成json字符串
alert (JSON.stringify(user))
</script>
查看json2.js地址:http://camnpr.com/downloadCamnpr/json2.js