What Is JSON?
JSON stands for JavaScript Object Notation. It is a lightweight text format used to store and exchange structured data between systems, applications and APIs.
JSON is one of the most common data formats on the web because it is simple to read, easy to write and supported in many programming languages.
Why is JSON so popular?
JSON is widely used because it is lightweight and easy for both humans and machines to understand. It is commonly used in APIs, front-end applications, mobile apps and data configuration files.
- Easy to read and write
- Lightweight text format
- Works well with APIs
- Supported by most programming languages
Example of JSON
A simple JSON object may look like this:
{
"name": "John",
"age": 25,
"city": "Brussels"
}
Where JSON is used
JSON is often used in REST APIs, JavaScript applications, backend services, mobile apps and configuration files. It has become a standard format for exchanging data on the web.
Common JSON mistakes
- Missing commas between fields
- Using single quotes instead of double quotes
- Adding trailing commas
- Invalid nesting or brackets
Format JSON online
If you want to clean and beautify JSON quickly, use our tool here: JSON Formatter
Frequently asked questions
Is JSON a programming language?
No. JSON is a data format, not a programming language.
Is JSON only for JavaScript?
No. Despite its name, JSON is used with many languages such as PHP, Python, Java and Go.
Can JSON store arrays and objects?
Yes. JSON can represent arrays, objects, strings, numbers, booleans and null values.