What is JSON?

Find out all you need to know about JSON, the world's most widely used format for API calls, and discover why it's a must-have.
•
Updated on August 14, 2026
•
3 min read
Believemy logo

JSON (short for JavaScript Object Notation) is one of the most commonly used formats for data exchange.

Warning

Note: Despite its name, JSON is not exclusively used by JavaScript! 😉

Over the years, it has become a key standard for exchanging information in web development and mobile applications.

 

The Origins of JSON

The origin of JSON traces back to Douglas Crockford. As a developer, he wanted to provide an option for those who needed to exchange data more easily. First introduced in 2001, JSON can be described as:

  • Simple to write
  • Fast to read
  • Intuitive to understand

Inspired by JavaScript objects, this is why the format carries its name! 😁

Its syntax is deceptively similar to what can be found in dictionaries in JavaScript.

 

The Syntax of JSON

The syntax of JSON is both simple and strict. It is based on two structure types:

  1. Objects (which closely resemble what is found in programming languages)
  2. Arrays (which also resemble what is found in programming languages)

Objects

In JSON, an object is simply a collection of "key: value" pairs, similar to what we often see in JavaScript.

Good to know

Each key must:

  • Be unique (you cannot have the same name twice)
  • Be a string (so no numbers)

Here’s an example of a JSON object:

JSON
{
  "name": "Louis-Nicolas",
  "age": 27,
  "freelancer": true,
  "skills": ["JavaScript", "Next.js", "Symfony", "React"]
}

Breaking down this object:

  • "name" - the key as a string
  • "age" - a number
  • "freelancer" - a boolean
  • "skills" - an array of strings

As we can see, the JSON format allows for mixing data types.

 

Arrays

An array in JSON is very similar to arrays in programming languages in general.

It is a list of values that can be of any type.

Here’s an example of a JSON array:

JSON
[
  "Next.js",
  "React",
  "Vue.js"
]

 

Accepted Data Types

As shown in the examples above, the data types supported by JSON are diverse. There are six:

  1. Strings: Must be enclosed in double quotes.
  2. Numbers: Without quotes, they can be integers or floating-point values.
  3. Booleans: Either true or false, without quotes.
  4. Objects: Enclosed in braces { }.
  5. Arrays: Enclosed in brackets [ ].
  6. Null: Represents a null value, written as null without quotes.

 

A Practical JSON Example

To combine everything we’ve learned, here is a complex example that mixes objects and arrays. This is a realistic example you may encounter in your career when working with JSON:

JSON
{
  "name": "Louis-Nicolas",
  "age": 27,
  "courses": [
    {
      "title": "Freelance Developer",
      "progress": 75
    },
    {
      "title": "Advanced Next.js",
      "progress": 50
    }
  ],
  "freelancer": true,
  "email": null
}

Some notes on this example:

  • The key "courses" is an array containing objects for each value, which is a common pattern 🙂.
  • The key "email" has a null value to indicate no information is provided.

 

Conclusion

The JSON syntax is strict and leaves no room for flexibility, but it establishes a simple and readable standard.

If you want to dive deeper while practicing JSON, we offer a complete JavaScript course where you’ll build projects using JSON, such as:

  • A geolocated weather application
  • A Bitcoin price tracker

You can access it for free here.

Our JavaScript Course
Our JavaScript Course
Category: Developers

Share this article

Want to help us? Share this article on your networks or even better: on your site, in an article or in your newsletter.

Believemy logo
Comments (0)

You need to be logged in to comment on this article: log in or sign up.

Read next

Understanding APIs: Exploring their Meaning and Utility

Discover the fascinating world of Application Programming Interfaces (APIs) in this captivating article. Immerse yourself in the essence of APIs, the digital bridges that enable different applications to work together seamlessly. Explore how APIs simplify technological complexity, foster innovation and enhance your everyday user experience. Real-life examples will guide you through weather applications, online payments and much more, showing you how APIs have become indispensable in the modern digital landscape.

December 11, 2024

Why you should learn NextJS in 2025: all the benefits!

Explore why Next.js is a must-have framework for developers in 2025. Learn about its benefits, unique features and why the job market is increasingly adopting it.

December 6, 2024

Why you should learn React in 2025: all the benefits!

Explore why React remains a must-have choice in 2025 for developers. Discover its advantages, the evolution of its features and why the market continues to prefer it.

December 6, 2024

What is GitHub?

Find out everything you need to know about GitHub, one of the most widely used platforms for developers.

December 6, 2024

Everything you need to know about the Temporal API with JavaScript

Discover JavaScript's Temporal API: classes, practical examples, time zone handling, and migration from Date. The ultimate guide to mastering Temporal.

March 20, 2026

How to create a new browser extension?

Browser extensions are now a must-have, so why not create your own? Learn in this article how to create, use and even publish your own extension. In this article, we're going to create an extension that lists lots of cool sites for devs!

December 11, 2024

Send an email with NextJS and SendGrid for free

Have you always wanted to send emails with JavaScript? Or more specifically, how to send emails with React or NextJS? Then let's find out together how to use SendGrid! It's a quick and easy solution to set up that will help us ensure that our emails are sent and, most importantly, received.

December 9, 2024

Setting up a loader when changing a Nextjs page

Have you ever been on a site where you click on a link and nothing happens? Or perhaps you've wondered whether your request was actually received? This is where having a loader comes in. In this article, we'll explain why it's important to have a loader on your website, how to set it up in your Nextjs project and create a function that will display the loader until the page is loaded. If you want to improve the user experience on your website and reassure your visitors, this article is for you.

December 11, 2024

Become the solopreneur you dream of being.

First project, career change, business launch: access our courses, practice on real-world cases, and move forward with clear guidance.