Volkan Ünal

What Is JSON? The Simple Idea Behind the Curly Brackets

What Is JSON? The Simple Idea Behind the Curly Brackets

“Ayşe, Istanbul, 32.”

When you read this note, you might guess that 32 is her age. But it could also be the number of items in an order. We have the information; we still have to work out what each part means.

Write it like this, and there is no need to guess:

Name: Ayşe

City: Istanbul

Age: 32

This is a useful starting point for understanding JSON: Give each piece of information a name that tells us what it is.

A form where every piece of information has a place

JSON is a format for writing and sharing information as organised text. People can read it, and software can process it.

Think of a registration form. You put your name in the “Name” box and your age in the “Age” box. The labels tell us what each answer means.

JSON follows a similar idea. Instead of boxes, it uses field names and a few punctuation marks.

Here is Ayşe’s information in JSON:

The appearance has changed, but we are describing the same person: her name is Ayşe, she lives in Istanbul, and she is 32. Her hobbies are music and sports.

Let’s read the symbols

“name” is the name of a field. In technical explanations, it is called a key. “Ayşe” is that field’s value.

The colon connects the field name to its value. You can read the name line as “Her name is Ayşe.”

Commas separate the fields. There is no comma after the last field.

The curly brackets keep Ayşe’s information together. You can think of them as the outside edge of the form.

Field names and text go inside double quotation marks. We are using 32 as a number, so it has no quotation marks.

Square brackets show a list. Ayşe has two hobbies, so “Music” and “Sports” are inside the same list.

Now let’s see how this structure can help with a real task.

Imagine an agent that answers our emails

Suppose we set up an AI agent to read and answer emails sent to our business. Our automation—a system that carries out tasks through steps we define—has four jobs: read the email, understand the request, write a reply, and send it.

Ayşe sends this email:

“Hello, what time do you close on Fridays?”

First, the email is read. The sender’s address, subject, and message are collected.

Next, the agent looks at the message. It identifies that Ayşe is asking about Friday’s closing time. It checks the business hours we have provided and prepares an answer.

Finally, the answer is passed to the tool that sends emails. Here is a simplified version of the information being passed:

You can now read these lines: who will receive the reply, its subject, and what it will say.

Here, JSON acts like an information form that moves between steps. The reading step collects the information. The agent uses it to prepare a reply. The sending step uses the recipient and reply it receives. Automation tools pass structured information like this between steps.

We chose the field names for this example. A particular tool may expect different names. What matters is that the sender and receiver use the same fields with the same meaning.

This is a practical reason to understand JSON. You can check whether the prepared answer is going to the right person and whether the right text is being passed on.

Inside those once-unfamiliar brackets, you can now read a simple structure: Who are we talking to, about what, and what are we saying?

Sources3
Share