Categories
How-To

An easier way to parse JSON

I’m currently a big fan of this syntax for parsing and writing JSON.

In the past, you used to have to do eval on your JSON coming in, and that posed a great security risk. Now you can use string.parseJSON and object.toJSONString by using this script:

http://www.json.org/json.js

Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *