Converting JSON string to JavaScript object

Javascript has an inbuilt library object to handle json data.

In order to convert a json string to an object, you can use the following method call:
var obj = JSON.parse("jsonString")
 for the other way around :
var jsonString = JSON.stringify(obj);

Check out the site It's very useful to format json strings.


Popular posts from this blog

Solved: Fix for Git clone failure due to GnuTLS recv error (-9)

Openstack : Fixing Failed to create network. No tenant network is available for allocation issue.

QuickBite: Tap Vs Veth