How the web works · Format

JSON

A simple text format for structured data, built from lists and name-value pairs, that nearly every API and programming language can read and write.

Data formats · updated

How it works

A JSON document looks like {"name": "Ada", "age": 36, "tags": ["admin"], "active": true}. It has only a handful of value types: strings, numbers, true and false, null, arrays (lists) and objects (name-value pairs). The syntax comes from JavaScript, but every mainstream language can parse it, which is why it replaced XML as the default format for web APIs.

Its simplicity has limits. There are no comments and no dates (they travel as text such as '2026-09-29T10:00:00Z'), binary data has to be encoded, and a single trailing comma makes a file invalid. Very large numbers lose precision in JavaScript, which is why IDs are often sent as strings. JSON Schema describes the shape a document should have, and databases such as PostgreSQL (JSONB) and MongoDB store it natively.

More in How the web works

Data formats

All 20 How the web works terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.