9951 explained code solutions for 126 technologies


javascriptParse JSON string


var text = '{"a": 1, "b": 2}';
var json = JSON.parse(text);ctrl + c
var text

string variable with JSON to parse

json

will contain parsed JSON object

JSON.parse

parses string JSON into an object