How to convert a JSON string into an Object in JavaScript



This code snippet show how to convert a JSON string into an Object in JavaScript.

Converting a string into a JSON object is done with the JSON.parse() method.

Result:

See also:

How to covert a JavaScript Object into a JSON string