Fundamentals · 5 min read

What Is JSON and How Does It Work?

Understand the small data format behind most modern APIs.

Published 10 November 2026

JSON stands for JavaScript Object Notation. It is a text format for representing structured data, and it is language independent despite its name. Almost every web API can send and receive JSON.

The building blocks

JSON has objects, arrays, strings, numbers, booleans and null. An object is a set of name/value pairs. An array is an ordered list. Everything else is a simple value.

{
  "title": "Tipde",
  "free": true,
  "categories": ["JSON", "CSS", "JavaScript"]
}

Why developers use it

JSON is easy to read, easy to parse and much lighter than XML. It maps naturally to objects in most programming languages, which makes it a practical choice for configuration files and API responses.

Rules worth remembering

  • Keys must be strings wrapped in double quotes.
  • Strings must use double quotes.
  • Trailing commas are not allowed.
  • Comments are not part of the format.
  • Numbers cannot include NaN or Infinity.

When a parser rejects your document, it is almost always one of these rules. Use the JSON Formatter to locate the problem quickly.

Next steps

Once you are comfortable reading JSON, try comparing a beautified version with a minified version. You will see that the information is identical; only the whitespace changes.

Try it yourself: open the Tipde tools and apply what you just read.

More guides