Caffeinated Coder
Book an appointment
Lesson 11 · Working with data

JSON

An object only lives in a running program's memory. To save it in a file or send it to another computer, it has to become text, and JSON is the text format almost everyone uses. Follow a six-line script as JSON.stringify writes an object out as text, piece by piece, and JSON.parse reads that text back into a brand-new object.

9 min9 steps5 questionsBeginner
Fig 11 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.