JSON Explained Like You're 5 (Then Like You're 25)
What JSON actually is, why developers won't shut up about it, and how you're already using it without knowing. Two explanations for two levels.
If you’ve spent any time around developers, you’ve heard them say “JSON” approximately seven thousand times. It sounds important. It sounds technical. It sounds like something you should probably understand but never got around to looking up.
Let’s fix that. Two explanations. Pick your level.
The “You’re 5” Explanation
Imagine you have a toy box. You want to tell your friend what’s in it. You could say:
“I have a red car, a blue truck, and a green dinosaur.”
JSON is just a way to write that down so computers can understand it too:
{
"toyBox": [
{ "type": "car", "color": "red" },
{ "type": "truck", "color": "blue" },
{ "type": "dinosaur", "color": "green" }
]
}
It’s a list of things with labels. That’s it. That’s JSON.
The “You’re 25” Explanation
JSON (JavaScript Object Notation) is a text-based data format that every programming language can read and write. It’s the lingua franca of the internet. When your phone app talks to a server, they’re almost certainly speaking JSON.
It supports six types: strings, numbers, booleans, null, arrays (ordered lists), and objects (key-value pairs). No comments allowed (controversial). No trailing commas (even more controversial).
Every API you’ll ever use returns JSON. Every config file that isn’t YAML is JSON. It won the data format wars through sheer simplicity. XML never recovered.
What You Can Do With JSON
Format it. Raw JSON from an API is one unreadable line. A JSON formatter adds indentation and syntax highlighting so you can actually see the structure.
Explore it. Complex JSON can be nested 10 levels deep. A JSON tree viewer lets you expand and collapse sections like a file explorer. Way better than scrolling through 5,000 lines.
Convert it. Need that JSON data in a spreadsheet? A JSON to CSV converter transforms it into rows and columns. Your boss doesn’t want to look at curly braces.
Compare it. Two JSON files that should be the same but aren’t? A JSON diff tool highlights exactly what changed. Saves you from playing “spot the difference” with 500 lines of data.
Why JSON Won
Before JSON, there was XML. XML looks like this:
<toyBox>
<toy>
<type>car</type>
<color>red</color>
</toy>
</toyBox>
It’s the same data but with twice as many characters. JSON said “what if we didn’t repeat every tag name twice?” and the internet collectively said “yes please.”
JSON isn’t perfect (no comments! no dates! no BigInt!), but it’s good enough for 95% of use cases. And “good enough for 95% of use cases” is how technologies win.
The Takeaway
JSON is just organized text. Curly braces for objects, square brackets for lists, colons between keys and values. If you can read a grocery list, you can read JSON. The fancy tools just make it easier to work with when it gets big.
Now you can nod knowingly the next time someone says “just parse the JSON response.” You earned it.