JSON (JavaScript Object Notation)
A lightweight, text-based data-interchange format that is easy for humans to read and for machines to parse and generate.
JSON is built on two fundamental structures: a collection of key/value pairs (known as an object) and an ordered list of values (known as an array). Originally derived from a subset of JavaScript, it is now language-independent and supported by virtually all modern programming languages.
Why is JSON so popular?
- Human-Readable: Its syntax is clean and easy to understand, which simplifies development and debugging.
- Machine-Friendly: It is trivial for machines to parse and generate, making it efficient for data exchange.
- Wide Adoption: It has become the de facto standard for APIs, configuration files, and data storage on the web.
{
"user": {
"name": "John Doe",
"id": 12345,
"isVerified": true,
"roles": ["admin", "editor"],
"profile": null
}
}