e01.org

JSON

JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of name–value pairs and arrays (or other serializable values). It is a commonly used data format with diverse uses in electronic data interchange, including that of web applications with servers. JSON is a programming language-independent data format. It was derived from JavaScript, but many modern programming languages include code to generate and parse JSON-format data. JSON filenames use the extension .json . Douglas Crockford originally specified the JSON format in the early 2000s, and sent the first JSON message in April 2001 with Chip Morningstar.

JSON (JavaScript Object Notation, pronounced or ) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of name–value pairs and arrays (or other serializable values). It is a commonly used data format with diverse uses in electronic data interchange, including that of web applications with servers. JSON is a programming language-independent data format. It was derived from JavaScript, but many modern programming languages include code to generate and parse JSON-format data. JSON filenames use the extension .json . Douglas Crockford originally specified the JSON format in the early 2000s, and sent the first JSON message in April 2001 with Chip Morningstar. { "first_name": "John", "last_name": "Smith", "is_alive": true, "age": 27, "address": { "street_address": "21 2nd Street", "city": "New York", "state": "NY", "postal_code": "10021-3100" }, "phone_numbers": [ { "type": "home", "number": "212 555-1234" }, { "type": "office", "number": "646 555-4567" } ], "children": [ "Catherine", "Thomas", "Trevor" ], "spouse": null } { "face": "😐" } Or: { "face": "\uD83D\uDE10" } JSON became a strict subset of ECMAScript as of the language's 2019 revision. XML tag names cannot contain any of the characters !"#$%&'()*+,/;<=>?@[\]^`{|}~ , nor a space character, and cannot begin with , , or a numeric digit, whereas JSON keys can (even if quotation mark and backslash must be escaped). XML values are strings of characters, with no built-in type safety. XML has the concept of schema, that permits strong typing, user-defined types, predefined tags, and formal structure, allowing for formal validation of an XML stream. JSON has several types built-in and has a similar schema concept in JSON Schema. XML supports comments, while JSON does not.

References

  1. Crockford, Douglas. The JSON Saga . YUI Library . 2011-08-28. retrieved 2022-02-21 · 1645398000.0
  2. ECMA-404: The JSON Data Interchange Format . October 2013. retrieved 20 November · 1790031600.0
  3. as an international standard. On December 13, 2017, the Internet Engineering Task Force obsoleted IETF RFC|7159 when it published IETF RFC|8259, which is the current version of the Inter . · 1790031600.0
  4. Douglas Crockford. JSON in JavaScript . 2016-07-10. retrieved 2016-08-13 · 1471042800.0
  5. Holm, Magnus. JSON: The JavaScript subset that isn't . The timeless repository . 15 May 2011. · 1790031600.0
  6. This is a consequence of JSON disallowing only "control characters". For maximum Porting|portability, these characters are backslash-escaped. JSON exchange in an Open source|open ecosystem mus . · 1790031600.0
  7. Andrysco, Marc. Printing Floating-P . 18 February 2016. · 1790031600.0
  8. Comments were intentionally excluded from JSON. In 2012, Douglas Crockford described their design decision thus: "I removed comments from JSON because I saw people were using them to hold parsing dire . · 1790031600.0
  9. Trailing commas - JavaScript ! . · 1790031600.0
  10. JSON5 . retrieved 16 December 2020 · 1790031600.0
  11. Media Types . iana.org . retrieved 13 September 2015 · 1790031600.0
  12. ECMA-404: The JSON Data Interchange Syntax . Ecma International . December 2017. · 1790031600.0
  13. Correct Content-Type Header for JSON . ReqBin . 2023-01-13. retrieved 2024-03-23 · 1711148400.0
  14. 11. IANA Considerations . Decem. · 1790031600.0
  15. JSON Schema and Hyper-Schema . json-schema.org . retrieved 8 June 2021 · 1790031600.0
  16. JSON Schema - Specification Links . json-schema.org . retrieved 2024-03-22 · 1711062000.0
  17. JSON Schema Implementations . json-schema.org . retrieved 8 June 2021 · 1790031600.0
  18. Zyp, Kris. JSON Reference: draft-pbryan-zyp-json-ref-03 . Internet Engineering Task Force . September 16, 2012. · 1790031600.0
  19. cockroachlabs.com . · 1790031600.0
  20. The JSON data type . dev.mysql.com . retrieved 1 April 2025 · 1790031600.0
  21. To avoid the many pitfalls caused by executing arbitrary code from the Internet, a new function, code|lang=javascript|code=JSON.parse(), was first added to the fifth edition of ECMAScript, cite . · 1790031600.0
  22. douglascrockford/JSON-js . GitHub . 2019-08-13. · 1790031600.0
  23. Crockford said in 2011, "There's a lot of argument about how you pronounce that, but I strictly don't care." Another common pronunciation is IPAc-en|ˈ|dʒ|eɪ|ˌ|s|ɒ|n. cite book |last1=Sweigart |f . · 1790031600.0
  24. RFC 8259, published in 2017, is the current version of the Internet Standard STD 90, and it remains consistent with ECMA-404.Ref RFC|8259 That same year, JSON was also standardized as ISO/IE . · 1790031600.0
  25. Bray, Tim. JSON Redux AKA RFC7159 . Ongoing . retrieved 16 March 2014 · 1790031600.0
  26. Unofficial Java History . Edu4Java . 2014-05-26. retrieved 2019-08-30 · 1567119600.0
  27. The acronym originated at State Software, a company cofounded by Crockford and others in March 2001. The cofounders agreed to build a system that used standard browser capabilities and provided an a . · 1790031600.0
  28. Yahoo!. Using JSON with Yahoo! Web services . retrieved July 3, 2009 · 1790031600.0
  29. Crockford, Douglas. Introducing JSON . json.org . May 28, 2009. retrieved July 3, 2009 · 1790031600.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"JSON". 1790085829. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1376182629

JSON record · API collection · citation policy