2 of 3
http://www.json.org/json2.js was remapped to https://github.com/douglascrockford/JSON-js/blob/master/json2.js by Jarrod Dixon (3)
Community Bot
- 1
- 1
Most of the popular JavaScript frameworks have JSON utility functions included. For instance, jQuery has a function that directly calls a url and loads the JSON result as an object : http://docs.jquery.com/Getjson
However, you can get an open-source JSON parser and stringifier from the json website :
https://github.com/douglascrockford/JSON-js/blob/master/json2.js
Then, simply include the code and use the JSON.stringify() method on your array.
Wookai
- 21.9k
- 16
- 76
- 86