JavaScript Json_basics Guide
JSON (JavaScript Object Notation) is a lightweight data interchange format. Parse and stringify with built-in methods. The guide walks through JSON Parse & Stringify. `JSON.parse(str)` — parse JSON string to value. `JSON.stringify(val)` — convert value to JSON string. Options: `JSON.stringify(val, replacer, space)`. Replacer: array of keys or function(k,v). Space: indentation (2 spaces). `toJSON()` method customizes serialization. Parse reviver: `JSON.parse(str, (k,v) => k === "date" ? new Date(v) : v)`. Circular references throw TypeError. The guide is organized into 1 sections that build on each other, each pairing a prose explanation with runnable code. Related guides: Arrays, Strings, Numbers, Math, Date. This is one of 145 JavaScript guides on JS Reference — see the full list on the guides page. Practice what you learn in the JavaScript playground, and look up any unfamiliar term in the JavaScript glossary.