Skip to content
JSON

Document format

JSON

JSON represents structured values as text: objects, arrays, strings, numbers, booleans and null. Douglas Crockford promoted it as a lightweight data interchange format derived from JavaScript notation.

Learn more

What is the format?

JSON represents structured values as text: objects, arrays, strings, numbers, booleans and null. Douglas Crockford promoted it as a lightweight data interchange format derived from JavaScript notation. A JSON file describes data, not page layout or a database schema. The same syntax is now used far beyond JavaScript.

Technical profile

Extensions
.json
Storage
Text file
Document model
Objects, arrays and scalar values
MIME
application/json
Universal Text Conversion Engine (UTCE)
Source and target
Scope
Format properties ≠ converter coverage

The cards describe the file format. Conversion boundaries are explained below.

History and evolution

JSON grew out of early web data exchange. RFC 4627 documented it in 2006; ECMA-404 and later RFC revisions refined its independent definition. RFC 8259, published in 2017, describes interoperable JSON exchange and highlights duplicate object names, numeric precision and Unicode issues. The grammar is deliberately small, while application contracts supply additional meaning.

  1. 2006

    RFC 4627

    RFC 4627 documented it in 2006; ECMA-404 and later RFC revisions refined its independent definition.

  2. 2017

    RFC 8259

    RFC 8259, published in 2017, describes interoperable JSON exchange and highlights duplicate object names, numeric precision and Unicode issues.

Related formats

Compare document models and their uses.

Technical architecture

Objects associate quoted names with values; arrays keep an ordered sequence. Strings use escapes for quotes, backslashes and control characters. JSON has no native dates, binary blobs, comments, NaN or infinity. Network interchange uses UTF-8. Numeric syntax does not guarantee that every receiving language can represent the same integer exactly.

Real-world applications

APIs, configuration files, event logs and dataset exports use JSON. Applications often add JSON Schema or a separate contract to define required fields and units. A date string and an account identifier remain strings unless the application assigns a meaning; preserving that distinction avoids accidental numeric conversion.

Advantages and limitations

Small syntax and widespread parsers simplify exchange. Human annotation and richer types are limited. Duplicate names can be interpreted differently by different parsers, and large integers can lose precision. A valid JSON file may still violate the consuming application’s schema. Do not use program evaluation as a JSON parser.

Compatibility and software

Most programming platforms include JSON support, but object order and number representation depend on implementation and application rules. Text editors help inspect syntax; schema tools check a deeper contract. For archives, document field meanings, numeric limits and schema version, rather than storing unexplained values alone.

Conversion considerations

UTCE accepts ordered JSON-compatible values and finite binary64 numbers, rejecting duplicate keys, unsafe integers and negative zero. Table projection can flatten nested values and lose scalar types or null distinctions; document output is a presentation of data. Exporting to XML uses UTCE’s explicit typed mapping, not an arbitrary domain schema.

Frequently asked questions

Can JSON contain comments?

Standard JSON cannot. JSONC and other extensions are different dialects; removing comments must respect string boundaries.

Why did a large identifier change?

A numeric parser may have rounded it. Store identifiers as strings when arithmetic is not intended and exact digits matter.

Sources and specifications