Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

how to parse json in javascript

Be First!
by March 23, 2012 JAVASCRIPT, JSON
Example :
var json = ‘{“result”:true,”count”:1}’,
obj = JSON.parse(json);
alert(obj.count);
For the browsers that don’t you can implement it using json2.js.

(867)

Previous
Next

Leave a Reply