1.9k views
3 votes
To convert a json string to a javascript object, you use the parse() method of the json object.​ true or false

1 Answer

4 votes
True. You could do:

var myObj = JSON.parse('{ "foo":"bar" }');

which gives the same result as:

var myObj = {
foo : "bar"
};

User Guilhermecgs
by
7.1k points