1 / 12

A Dictionary That Outlives the Program

You know how to build a dictionary. You know how to write to a file. But a dictionary is a thing in memory and a file holds text — and the moment your program ends, the dictionary is gone.

JSON is the bridge: a way of writing structured data down as text, and reading it back as the same shape you started with.