JSON — JavaScript Object Notation
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.
- Object
Named fields
- Array
Ordered values
- 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
Schema
A description of the shape data must have: which fields exist and what goes in each.
Prompting & contextStructured output
An answer in a set format, such as named fields. Software can check the format, but the facts still need review.
APIs & softwareAPI — Application Programming Interface
A doorway that lets one program talk to another. Apps use an API to send your request to the model and get the answer back.
Where it is taught
APIs and JSON: connect a model to a small programSource and further reading
MDN · JSONThe 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.