Parsing a simple JSON string

suggest change

The JSON.parse() method parses a string as JSON and returns a JavaScript primitive, array or object:

const array = JSON.parse('[1, 2, "c", "d", {"e": false}]');
console.log(array); // logs: [1, 2, "c", "d", {e: false}]

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


JSON:
*Parsing a simple JSON string

Table Of Contents
16Map
17Set
41JSON