What Is JSON? How Data Travels Between Apps
You open a weather app and the temperature appears in a second. Behind that tap, your app just asked another computer for data — and that data had to arrive in a shape both sides could read. So what is that shape, and why does almost every app use the same one?
JSON is a simple text format that carries data as a list of labels and values, so two computers can send information back and forth without ever getting confused about what each piece means.
What is JSON, really?
JSON stands for JavaScript Object Notation, but you don’t need to know JavaScript to use it. The easiest way to picture JSON is a filled-in form.
Think of any form you’ve filled online — for a PAN card, a Flipkart order, anything. Each box has a label, like Name or City. Next to the label, you write the value: Delhi. Anyone can read it back later without guessing.
JSON works exactly like that. A label, then its value, packed up and sent across the internet. Because every value sits next to a clear label, nothing gets mixed up — name here, city there, both sides reading it the same way.
What does a piece of JSON look like?
Let’s look at one little pair:
"city": "Delhi"
Here’s how to read it:
- The word
cityis the label — it says what this piece of data is. - A colon (
:) joins the two sides. Delhiis the value — the actual data.
You add as many pairs as you need and wrap them in curly braces. Now you have a JSON object:
{
"name": "Asha",
"city": "Delhi"
}
That’s it. Simple to type, simple to read, and easy for a computer to understand too.
Why does JSON matter for AI and apps?
This matters because when an app asks an API for data, the answer comes back as JSON nearly every time. Weather reports, your profile details, a list of orders — all of it travels in this format.
If you skipped the previous lesson, it helps to first understand what an API is, because JSON is the language an API usually replies in. The two go hand in hand: the API is the request, and JSON is the answer.
This also matters as you start building with AI. When you ask an AI tool to fetch live data or talk to another service, JSON is almost always what comes back — so once you can read it, a lot of “techy” output stops looking scary.
How do I try JSON right now?
You can print a tiny JSON object in your terminal in one line. Try this:
echo '{ "city": "Delhi" }'
You’ll see the object printed back:
{ "city": "Delhi" }
Label, colon, value, wrapped in braces. That neat shape is JSON — and you just wrote your first one.
What comes next?
Now you know how data travels between apps. The next question is where all that data lives when it isn’t moving — and that’s a database. Keep going step by step in the free Zero to AI Hero course, where the next lesson explains what a database is in the same plain way.
Key takeaways
- What is JSON: a simple text format that stores data as label-and-value pairs.
- Each pair is a
"label": "value"joined by a colon, wrapped together in curly braces. - It works like a filled-in form, so two computers never get confused about what each piece means.
- APIs send their replies as JSON almost every time — weather, profiles, orders, and more.
- Try it yourself:
echo '{ "city": "Delhi" }'prints your first JSON object.
🚀 Take the full free course: Zero to AI Hero — learn to build with AI from scratch. New lessons daily, in Hindi & English.
Want to actually learn this?
151 free 2-minute lessons — from "what's a file?" to building with AI.
▶ Start the free course