Converting a JSON string back into a JS value.
- Category: JS JSON — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "JSON.parse()" in one sentence, then back it up with a tiny example
// JSON.parse() — minimal example
console.log("JSON.parse()");Tip
Quick recall: "JSON.parse()" — converting a JSON string back into a JS value.