Why JSON Exists
Your program's data lives in memory and disappears when it stops. To keep it, or to send it to another program, it has to become text.
JSON (JavaScript Object Notation) is the agreed way to write structured data as text. Nearly every website, app, and API on earth speaks it. It looks almost exactly like a JavaScript object or a Python dictionary, which is why it feels familiar immediately.
JSON supports exactly six kinds of value: objects {}, arrays [], strings, numbers, booleans, and null. No functions, no dates, no comments. That deliberate smallness is why every language can read it.
Mark this lesson complete
Signed in, your progress follows you to every device.