JSON.parse

The JavaScript function JSON.parse(text) can be used to convert a JSON text into a JavaScript object:

var json = '{"result":true,"count":1}',
    obj = JSON.parse(json);

alert(obj.count);


Reff:http://stackoverflow.com/questions/4935632/parse-json-in-javascript
http://www.w3schools.com/json/json_eval.asp

Advertisements
JSON.parse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s