Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

JSON — JavaScript Object Notation

In plain words

A tidy text format for data, made of labels and values in curly brackets. Programs use it to pass information around.

The fuller definition

JSON is a text format for representing structured values, including objects, arrays, strings, numbers, booleans, and null.

How it fits together
  1. Object

    Named fields

  2. Array

    Ordered values

  3. Validation

    Syntax then meaning

A simplified relationship, not a screenshot or a complete design.

A concrete example

A document record can be represented as {"id":"A01","pages":12}.

The distinction that matters

Valid JSON means the text follows the format; it does not mean the values are correct.

Related terms

Where it is taught

APIs and JSON: connect a model to a small program

Source and further reading

MDN · JSON

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC