Developer & Data Platforms

JSON

Also known as: JavaScript Object Notation, JSON format

JSON (JavaScript Object Notation) is a lightweight, text-based format for representing data as labelled values, lists, and nested groups, using curly braces and quotation marks.

Almost every web service, app, and API uses JSON to send information back and forth, such as weather data, user profiles, or order details. It's easy for both people and computers to read. While JSON is simple and universal, it doesn't allow comments and is strict about punctuation, so a single missing comma breaks a file.

JSON, explained at three levels

At home

JSON is like a neatly labelled form. Each piece of information has a name, such as 'city,' and a value, such as 'Toronto,' so any app can read it.

At work

JSON is the common language business systems use to exchange data through APIs and integrations.

Real-world examples

At home

Marcus downloaded his data from a social media site. It arrived as JSON files, which he opened in a text editor to see what had been collected.

At work

Aisha integrates systems for a Vancouver retailer. She used JSON Schema to validate order data from partners, catching bad records before they reached inventory.

How it compares

featureJSONYAMLXML
ReadabilityGoodVery goodModerate
CommentsNot allowedAllowedAllowed
Main useAPIs, data exchangeConfiguration filesDocuments, older systems
StrictnessStrictWhitespace-sensitiveVerbose

JSON dominates APIs. YAML suits configs. XML suits older systems.

For analysts

In integration projects, I'd document JSON field definitions in a data dictionary. Mismatched assumptions about field formats cause most integration bugs.

History & origin

Douglas Crockford popularized JSON in the early 2000s, describing a subset of JavaScript syntax as a simpler alternative to XML for exchanging data between web browsers and servers, and launched json.org in 2002. As web apps and APIs grew in the late 2000s, JSON overtook XML as the dominant format. It was formally standardized as ECMA-404 in 2013 and in the internet standard RFC 8259 in 2017. Databases such as MongoDB and PostgreSQL added strong JSON support, and AI models in the 2020s gained 'structured output' features that return reliable JSON. In my view, JSON won because it was simple enough that nobody needed to argue about it.