Json对象和字符串互转

https://github.com/douglascrockford/JSON-js/blob/master/json.js

http://www.JSON.org/js.html

  var json = JSON.parse(str);   //转对象

  var str = JSON.stringify(json) //转字符串

 

  

  

posted @ 2013-03-18 15:34  七郎  Views(176)  Comments(0Edit  收藏  举报