JSON
From WikiTech, the free technology encyclopedia
Lightweight text format for exchanging data
6 sources from JSON.org, Ecma International, IETF Datatracker and 2 more. Checked by ByteExplained editors on 3 December 2026. How we check facts
JSON (JavaScript Object Notation) is a lightweight, text-based format for exchanging data between computer programs.[1] Although it grew out of JavaScript, it is a completely language-independent text format.[1]
History
JSON is based on a subset of JavaScript as defined in the third edition of the ECMA-262 standard, published in December 1999, and was inspired by the way JavaScript writes object literals.[1][3] The format was first presented on the JSON.org website in 2001.[3] Douglas Crockford is credited with having "discovered" JSON,[6] and he wrote RFC 4627, the first Internet Engineering Task Force (IETF) document describing it, published in July 2006, which registered a media type for JSON.[4]
Standards
JSON is defined by two closely aligned standards. Ecma International published the first edition of ECMA-404 in October 2013; it defines only the syntax of valid JSON and leaves the meaning of the data to other specifications.[2] A second edition followed in December 2017, the same year the IETF published RFC 8259, and the syntax in the two documents is intended to be identical.[3] RFC 8259, edited by Tim Bray, is a full Internet Standard.[5] It registers the media type application/json and requires that JSON exchanged between systems outside a closed ecosystem be encoded in UTF-8.[5]
How it works
JSON is built on two structures. An object is an unordered set of name/value pairs, and an array is an ordered collection of values.[1] Each value can be a string in double quotes, a number, true, false, null, or another object or array, so structures can be nested.[1] A simple record might look like this:
{"name": "Ada", "languages": ["English", "French"], "active": true}
See also
References
- ^ Introducing JSON. JSON.org. json.org
- ^ ECMA-404. Ecma International. ecma-international.org
- ^ ECMA-404: The JSON data interchange syntax, 2nd edition. Ecma International. 2017-12. ecma-international.org
- ^ RFC 4627: The application/json Media Type for JavaScript Object Notation (JSON) — history. IETF Datatracker. datatracker.ietf.org
- ^ RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format. RFC Editor (IETF). 2017-12. rfc-editor.org
- ^ The JSON Saga. Microsoft Research. microsoft.com





