JSON Intro
JSON is a text format for data exchange. Parse turns that text into values, and stringify turns supported values into text.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
const text = '{"title":"Repair club","places":12}';
const session = JSON.parse(text);
console.log(session.title);
What happens
The parsed record has a title and a numeric place count.