How to convert JSON string to Javascript Object in Javascript with Example
2824 Views
JSON.parse(JSON String)
JSON.parse() method is used to convert JSON string to Javascript Object in Javascript. See below example and try it your self with demo to understand more.
Example
var jsonString = '["Raja","Siva","Kumar","Sarathy"]';
var jsonObject = JSON.parse(jsonString);
document.write(jsonObject);