JSON

From HandWiki
(Redirected from ECMA-404)
Short description: Open standard file format and data interchange
JavaScript Object Notation
JSON vector logo.svg
Filename extension.json
Internet media typeapplication/json
Type codeTEXT
Uniform Type Identifier (UTI)public.json
Type of formatData interchange
Extended fromJavaScript
StandardSTD 90 (RFC 8259), ECMA-404 (PDF), ISO/IEC 21778:2017
Websitejson.org

JSON (JavaScript Object Notation, pronounced /ˈsən/; also /ˈˌsɒn/) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays (or other serializable values). It is a common data format with diverse uses in electronic data interchange, including that of web applications with servers.

JSON is a 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.[1] He and Chip Morningstar sent the first JSON message in April 2001.

Naming and pronunciation

The 2017 international standard (ECMA-404 and ISO/IEC 21778:2017) specifies that "JSON" is "pronounced /ˈ.sən/, as in 'Jason and The Argonauts'".[2][3] The first (2013) edition of ECMA-404 did not address the pronunciation.[4] The UNIX and Linux System Administration Handbook states that "Douglas Crockford, who named and promoted the JSON format, says it's pronounced like the name Jason. But somehow, "JAY-sawn" seems to have become more common in the technical community."[5] Crockford said in 2011, "There's a lot of argument about how you pronounce that, but I strictly don't care."[6]

Standards

After RFC 4627 had been available as its "informational" specification since 2006, JSON was first standardized in 2013, as ECMA-404.[7] RFC 8259, published in 2017, is the current version of the Internet Standard STD 90, and it remains consistent with ECMA-404.[8] That same year, JSON was also standardized as ISO/IEC 21778:2017.[2] The ECMA and ISO/IEC standards describe only the allowed syntax, whereas the RFC covers some security and interoperability considerations.[9]

History

Douglas Crockford at the Yahoo Building (2007)

JSON grew out of a need for a real-time server-to-browser session communication protocol without using browser plugins such as Flash or Java applets, the dominant methods used in the early 2000s.[10]

Crockford first specified and popularized the JSON format.[11] The acronym originated at State Software, a company co-founded by Crockford and others in March 2001. The co-founders agreed to build a system that used standard browser capabilities and provided an abstraction layer for Web developers to create stateful Web applications that had a persistent duplex connection to a Web server by holding two Hypertext Transfer Protocol (HTTP) connections open and recycling them before standard browser time-outs if no further data were exchanged. The co-founders had a round-table discussion and voted whether to call the data format JSML (JavaScript Markup Language) or JSON (JavaScript Object Notation), as well as under what license type to make it available. The JSON.org[12] website was launched in 2001. In December 2005, Yahoo! began offering some of its Web services in JSON.[13]

A precursor to the JSON libraries was used in a children's digital asset trading game project named Cartoon Orbit at Communities.com[citation needed] (the State co-founders had all worked at this company previously) for Cartoon Network[citation needed], which used a browser side plug-in with a proprietary messaging format to manipulate DHTML elements (this system is also owned by 3DO[citation needed]). Upon discovery of early Ajax capabilities, digiGroups, Noosh, and others used frames to pass information into the user browsers' visual field without refreshing a Web application's visual context, realizing real-time rich Web applications using only the standard HTTP, HTML and JavaScript capabilities of Netscape 4.0.5+ and IE 5+. Crockford then found that JavaScript could be used as an object-based messaging format for such a system. The system was sold to Sun Microsystems, Amazon.com and EDS.

JSON was based on a subset of the JavaScript scripting language (specifically, Standard ECMA-262 3rd Edition—December 1999[14]) and is commonly used with JavaScript, but it is a language-independent data format. Code for parsing and generating JSON data is readily available in many programming languages. JSON's website lists JSON libraries by language.

In October 2013, Ecma International published the first edition of its JSON standard ECMA-404.[7] That same year, RFC 7158 used ECMA-404 as a reference. In 2014, RFC 7159 became the main reference for JSON's Internet uses, superseding RFC 4627 and RFC 7158 (but preserving ECMA-262 and ECMA-404 as main references). In November 2017, ISO/IEC JTC 1/SC 22 published ISO/IEC 21778:2017[2] as an international standard. On 13 December 2017, the Internet Engineering Task Force obsoleted RFC 7159 when it published RFC 8259, which is the current version of the Internet Standard STD 90.[15][16]

Crockford added a clause to the JSON license stating that "The Software shall be used for Good, not Evil", in order to open-source the JSON libraries while mocking corporate lawyers and those who are overly pedantic. On the other hand, this clause led to license compatibility problems of the JSON license with other open-source licenses, as open-source software and free software usually imply no restrictions on the purpose of use.[17]

Syntax

The following example shows a possible JSON representation describing a person.

{
  "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
}

Character encoding

Although Crockford originally asserted that JSON is a strict subset of JavaScript and ECMAScript,[18] his specification actually allows valid JSON documents that are not valid JavaScript; JSON allows the Unicode line terminators U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR to appear unescaped in quoted strings, while ECMAScript 2018 and older do not.[19][20] This is a consequence of JSON disallowing only "control characters". For maximum portability, these characters should be backslash-escaped.

JSON exchange in an open ecosystem must be encoded in UTF-8.[8] The encoding supports the full Unicode character set, including those characters outside the Basic Multilingual Plane (U+0000 to U+FFFF). However, if escaped, those characters must be written using UTF-16 surrogate pairs. For example, to include the Emoji character U+1F610 😐 NEUTRAL FACE in JSON:

{ "face": "😐" }
// or
{ "face": "\uD83D\uDE10" }

JSON became a strict subset of ECMAScript as of the language's 2019 revision.[20][21]

Data types

JSON's basic data types are:

  • Number: a signed decimal number that may contain a fractional part and may use exponential E notation, but cannot include non-numbers such as NaN. The format makes no distinction between integer and floating-point. JavaScript uses IEEE-754 double-precision floating-point format for all its numeric values (later also supporting BigInt[22]), but other languages implementing JSON may encode numbers differently.
  • String: a sequence of zero or more Unicode characters. Strings are delimited with double quotation marks and support a backslash escaping syntax.
  • Boolean: either of the values true or false
  • Array: an ordered list of zero or more elements, each of which may be of any type. Arrays use square bracket notation with comma-separated elements.
  • Object: a collection of name–value pairs where the names (also called keys) are strings. The current ECMA standard states: "The JSON syntax does not impose any restrictions on the strings used as names, does not require that name strings be unique, and does not assign any significance to the ordering of name/value pairs."[23] Objects are delimited with curly brackets and use commas to separate each pair, while within each pair the colon ':' character separates the key or name from its value.
  • null: an empty value, using the word null

Whitespace is allowed and ignored around or between syntactic elements (values and punctuation, but not within a string value). Four specific characters are considered whitespace for this purpose: space, horizontal tab, line feed, and carriage return. In particular, the byte order mark must not be generated by a conforming implementation (though it may be accepted when parsing JSON). JSON does not provide syntax for comments.[24]

Early versions of JSON (such as specified by RFC 4627) required that a valid JSON text must consist of only an object or an array type, which could contain other types within them. This restriction was dropped in RFC 7158, where a JSON text was redefined as any serialized value.

Numbers in JSON are agnostic with regard to their representation within programming languages. While this allows for numbers of arbitrary precision to be serialized, it may lead to portability issues. For example, since no differentiation is made between integer and floating-point values, some implementations may treat 42, 42.0, and 4.2E+1 as the same number, while others may not. The JSON standard makes no requirements regarding implementation details such as overflow, underflow, loss of precision, rounding, or signed zeros, but it does recommend expecting no more than IEEE 754 binary64 precision for "good interoperability". There is no inherent precision loss in serializing a machine-level binary representation of a floating-point number (like binary64) into a human-readable decimal representation (like numbers in JSON), and back, since there exist published algorithms to do this exactly and optimally.[25]

Comments were intentionally excluded from JSON. In 2012, Douglas Crockford described his design decision thus: "I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability."[24]

JSON disallows "trailing commas", a comma after the last value inside a data structure.[26] Trailing commas are a common feature of JSON derivatives to improve ease of use.[27]

Semantics

While JSON provides a syntactic framework for data interchange, unambiguous data interchange also requires agreement between producer and consumer on the semantics of specific use of the JSON syntax.[28] One example of where such an agreement is necessary is the serialization of data types defined by the JavaScript syntax that are not part of the JSON standard, e.g., Date, Function, Regular Expression, and undefined.[29]

Interoperability

RFC 8259 describes certain aspects of JSON syntax which, while legal per the specifications, can cause interoperability problems.

  • Certain JSON implementations only accept JSON texts which represent an object or an array. For interoperability, applications interchanging JSON should transmit messages which are objects or arrays.
  • The specifications allow JSON objects which contain multiple members with the same name. The behavior of implementations processing objects with duplicate names is unpredictable. For interoperability, applications should avoid duplicate names when transmitting JSON objects.
  • The specifications specifically say that the order of members in JSON objects is not significant. For interoperability, applications should avoid assigning meaning to member ordering even if the parsing software makes that ordering visible.
  • While the specifications place no limits on the magnitude or precisions of JSON number literals, the widely-used JavaScript implementation stores them as IEEE754 "binary64" quantities. For interoperability, applications should avoid transmitting numbers which cannot be represented in this way, for example 1E400 or 3.141592653589793238462643383279.
  • While the specifications do not constrain the character encoding of the Unicode characters in a JSON text, the vast majority of implementations assume UTF-8 encoding; for interoperability, applications should always and only encode JSON messages in UTF-8.
  • The specifications do not forbid transmitting byte sequences that do not correctly represent Unicode characters. For interoperability, applications should transmit messages containing no such byte sequences.
  • The specification does not constrain how applications go about comparing Unicode strings. For interoperability, applications should always perform such comparisons code unit by code unit.

In 2015, the IETF published RFC7493, describing the "I-JSON Message Format", a restricted profile of JSON which constrains the syntax and processing of JSON to avoid, as much as possible, these interoperability issues.

Metadata and schema

The official MIME type for JSON text is "application/json",[30] and most modern implementations have adopted this. The unofficial MIME type "text/json" or the content-type "text/javascript" are also supported for legacy reasons by many service providers, browsers, servers, web applications, libraries, frameworks, and APIs. Notable examples include the Google Search API,[31] Yahoo!,[31][32] Flickr,[31] Facebook API,[33] Lift framework,[34] and Dojo Toolkit 0.4.[35]

JSON Schema specifies a JSON-based format to define the structure of JSON data for validation, documentation, and interaction control. It provides a contract for the JSON data required by a given application, and how that data can be modified.[36] JSON Schema is based on the concepts from XML Schema (XSD) but is JSON-based. As in XSD, the same serialization/deserialization tools can be used both for the schema and data, and it is self-describing. It is specified in an Internet Draft at the IETF, currently in 2020-12 draft, which was released on January 28, 2021.[37] There are several validators available for different programming languages,[38] each with varying levels of conformance. The standard filename extension is .json.[39]

The JSON standard does not support object references, but an IETF draft standard for JSON-based object references exists.[40]

Uses

JSON-RPC is a remote procedure call (RPC) protocol built on JSON, as a replacement for XML-RPC or SOAP. It is a simple protocol that defines only a handful of data types and commands. JSON-RPC lets a system send notifications (information to the server that does not require a response) and multiple calls to the server that can be answered out of order.

Asynchronous JavaScript and JSON (or AJAJ) refers to the same dynamic web page methodology as Ajax, but instead of XML, JSON is the data format. AJAJ is a web development technique that provides for the ability of a webpage to request new data after it has loaded into the web browser. Typically it renders new data from the server in response to user actions on that webpage. For example, what the user types into a search box, client-side code then sends to the server, which immediately responds with a drop-down list of matching database items.

JSON has seen ad hoc usage as a configuration language. However, it does not support comments. In 2012, Douglas Crockford, JSON creator, had this to say about comments in JSON when used as a configuration language: "I know that the lack of comments makes some people sad, but it shouldn't. Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin[41] before handing it to your JSON parser."[24]

MongoDB uses JSON-like data for its document-oriented database.

Some relational databases, such as PostgreSQL and MySQL, have added support for native JSON data types. This allows developers to store JSON data directly in a relational database without having to convert it to another data format.

Safety

JSON being a subset of JavaScript can lead to the misconception that it is safe to pass JSON texts to the JavaScript eval() function. This is not safe, due to certain valid JSON texts, specifically those containing U+2028 LINE SEPARATOR or U+2029 PARAGRAPH SEPARATOR, not being valid JavaScript code until JavaScript specifications were updated in 2019, and so older engines may not support it.[42] To avoid the many pitfalls caused by executing arbitrary code from the Internet, a new function, JSON.parse() was first added to the fifth edition of ECMAScript,[43] which as of 2017 is supported by all major browsers. For non-supported browsers, an API-compatible JavaScript library is provided by Douglas Crockford.[44] In addition, the TC39 proposal "Subsume JSON" made ECMAScript a strict JSON superset as of the language's 2019 revision.[20][21] Various JSON parser implementations have suffered from denial-of-service attack and mass assignment vulnerability.[45][46]

Alternatives

JSON is promoted as a low-overhead alternative to XML as both of these formats have widespread support for creation, reading, and decoding in the real-world situations where they are commonly used.[47] Apart from XML, examples could include CSV and supersets of JSON. Google Protocol Buffers can fill this role, although it is not a data interchange language. CBOR has a superset of the JSON data types, but it is not text-based.

XML

Main page: XML

XML has been used to describe structured data and to serialize objects. Various XML-based protocols exist to represent the same kind of data structures as JSON for the same kind of data interchange purposes. Data can be encoded in XML in several ways. The most expansive form using tag pairs results in a much larger (in character count) representation than JSON, but if data is stored in attributes and 'short tag' form where the closing tag is replaced with />, the representation is often about the same size as JSON or just a little larger. However, an XML attribute can only have a single value and each attribute can appear at most once on each element.

XML separates "data" from "metadata" (via the use of elements and attributes), while JSON does not have such a concept.

Another key difference is the addressing of values. JSON has objects with a simple "key" to "value" mapping, whereas in XML addressing happens on "nodes", which all receive a unique ID via the XML processor. Additionally, the XML standard defines a common attribute xml:id, that can be used by the user, to set an ID explicitly.

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).[48]

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.[49][24]

Supersets

Support for comments and other features have been deemed useful, which has led to several nonstandard JSON supersets being created. Among them are HJSON,[50] HOCON, and JSON5 (which despite its name, is not the fifth version of JSON).[51][52]

YAML

YAML version 1.2 is a superset of JSON; prior versions were not strictly compatible. For example, escaping a slash / with a backslash \ is valid in JSON, but was not valid in YAML.[53] YAML supports comments, while JSON does not.[53][51][24]

CSON

CSON ("cursive script object notation"), is defined as tiny grammar additions to JSONs ABNF grammar specified by RFC 4627. Like YAML, it is a strict superset of JSON. Contrary to YAML, every CSON data can be translated to JSON back and forth, so one can continue to use a library which only understands JSON, and one does not have to translate existing JSON. Besides such JSON equivalence, design considerations were:[54]

  • Ease of writing, it supports comments, single + double quoted strings, strings in multiple lines, redundant commas.
  • Ease of parsing, it is LL(1) and explicitly avoids context sensitivity.
  • Incompatibility to JavaScript is not strict, therefore avoid CSON over HTTP.
  • Whitespaces are not significant.
  • Like YAML, strict string, no data types, unlike e.g., TOML. Additional data types should not be a data format job, and would make every implementation difficult.

Libraries for C, JavaScript, Python, and Rust exist.

HOCON

HOCON ("Human-Optimized Config Object Notation" is a format for human-readable data, and a superset of JSON.[55] The uses of HOCON are:

  • It is primarily used in conjunction with the Play framework,[56] and is developed by Lightbend.
  • It is also supported as a configuration format for .NET projects via Akka.NET[57][58] and Puppet.[59]
  • TIBCO Streaming:[60] HOCON is the primary configuration file format for the TIBCO Streaming[61] family of products (StreamBase, LiveView, and Artifact Management Server) as of TIBCO Streaming Release 10.[62]
  • It is also the primary configuration file format for several subsystems of Exabeam Advanced Analytics.[63]
  • Jitsi uses it as the "new" config system and .properties-Files as fallback[64][65]

JSON5

JSON5 ("JSON5 Data Interchange Format") is an extension of JSON syntax that just like JSON is also valid JavaScript syntax. The specification was started in 2012 and finished in 2018 with version 1.0.0.[66] The main differences to JSON syntax are:

  • Optional trailing commas
  • Unquoted object keys
  • Single quoted and multiline strings
  • Additional number formats
  • Comments

JSON5 syntax is supported in some software as extension of JSON syntax, for instance in SQLite.[67]

JSONC

JSONC (JSON with comments) is a subset of JSON5 and primarily used by Microsoft:

  • supports single line comments (//) and block comments (/* */)
  • accepts trailing commas, but they are discouraged and the editor will display a warning[68]

Derivatives

Several serialization formats have been built on or from the JSON specification. Examples include

See also

References

  1. "Douglas Crockford: The JSON Saga". YouTube. 2011-08-28. https://www.youtube.com/watch?v=-C-JoyNuQJs. 
  2. 2.0 2.1 2.2 "ISO/IEC 21778:2017". http://www.iso.org/cms/render/live/en/sites/isoorg/contents/data/standard/07/16/71616.html. 
  3. "Standard ECMA-404 – The JSON Data Interchange Syntax". Ecma International. December 2017. p. 1, footnote. https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf. 
  4. ECMA-404: The JSON Data Interchange Format (2nd ed.). Geneva: ECMA International. December 2017. https://www.ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf. 
  5. Nemeth, Evi; Snyder, Garth; Hein, Trent R.; Whaley, Ben; Mackin, Dan (2017). "19: Web Hosting" (in en). UNIX and Linux System Administration Handbook (5th ed.). Addison-Wesley Professional. ISBN 9780134278292. https://books.google.com/books?id=f7M1DwAAQBAJ&pg=PT1125. Retrieved 29 October 2019. 
  6. "Douglas Crockford: The JSON Saga – Transcript Vids". http://transcriptvids.com/v/-C-JoyNuQJs.html. 
  7. 7.0 7.1 "The JSON Data Interchange Format". ECMA International. October 2013. https://ecma-international.org/wp-content/uploads/ECMA-404_1st_edition_october_2013.pdf. 
  8. 8.0 8.1 Bray, T. (December 2017). The JavaScript Object Notation (JSON) Data Interchange Format. IETF. doi:10.17487/RFC8259. https://tools.ietf.org/html/rfc8259. Retrieved 16 February 2018. 
  9. Bray, Tim. "JSON Redux AKA RFC7159". Ongoing. https://www.tbray.org/ongoing/When/201x/2014/03/05/RFC7159-JSON. 
  10. "Unofficial Java History". 2014-05-26. http://www.edu4java.com/en/java/unofficial-java-history.html. "In 1996, Macromedia launches Flash technology which occupies the space left by Java and ActiveX, becoming the de facto standard for animation on the client side." 
  11. "Douglas Crockford — The JSON Saga". YouTube. 28 August 2011. https://www.youtube.com/watch?v=-C-JoyNuQJs. 
  12. "JSON". http://json.org/. 
  13. Yahoo!. "Using JSON with Yahoo! Web services". http://developer.yahoo.com/common/json.html. 
  14. Crockford, Douglas (May 28, 2009). "Introducing JSON". json.org. http://json.org. "It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999." 
  15. Bray, Tim (December 2017). History for draft-ietf-jsonbis-rfc7159bis-04. Internet Engineering Task Force. https://datatracker.ietf.org/doc/rfc8259/history/. Retrieved 2019-10-24. "2017-12-13 [...] RFC published". 
  16. Bray, Tim (December 13, 2017). RFC 8259 - The JavaScript Object Notation (JSON) Data Interchange Format. Internet Engineering Task Force. https://datatracker.ietf.org/doc/rfc8259/. Retrieved 2019-10-24. "Type: RFC - Internet Standard (December 2017; Errata); Obsoletes RFC 7159; Also known as STD 90". 
  17. "Apache and the JSON license" on LWN.net by Jake Edge (November 30, 2016).
  18. Douglas Crockford (2016-07-10). "JSON in JavaScript". http://www.json.org/js.html. "JSON is a subset of the object literal notation of JavaScript." 
  19. Holm, Magnus (15 May 2011). "JSON: The JavaScript subset that isn't". The timeless repository. http://timelessrepo.com/json-isnt-a-javascript-subset. 
  20. 20.0 20.1 20.2 "Subsume JSON: Proposal to make all JSON text valid ECMA-262". Ecma TC39. 23 August 2019. https://tc39.es/proposal-json-superset/. 
  21. 21.0 21.1 "Advance to Stage 4 - tc39/proposal-json-superset". May 22, 2018. https://github.com/tc39/proposal-json-superset/commit/0604b6083e18fe033a1520388b8c6146bcd79e23. 
  22. "BigInt - MDN Web doc glossary". https://developer.mozilla.org/en-US/docs/Glossary/BigInt. 
  23. The JSON Data Interchange Syntax (2nd ed.). Ecma International. December 2017. p. 3. https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf#page=11. "The JSON syntax does not impose any restrictions on the strings used as names, does not require that name strings be unique, and does not assign any significance to the ordering of name/value pairs." 
  24. 24.0 24.1 24.2 24.3 24.4 Crockford, Douglas (2012-04-30). "Comments in JSON". https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr. "I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability. I know that the lack of comments makes some people sad, but it shouldn't. Suppose you are using JSON to keep configuration files, which you would like to annotate. Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser." 
  25. Andrysco, Marc; Jhala, Ranjit; Lerner, Sorin. "Printing Floating-Point Numbers - An Always Correct Method". https://cseweb.ucsd.edu/~mandrysc/pub/dtoa.pdf. 
  26. "Trailing commas - JavaScript | MDN" (in en-US). 2023-09-12. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas. 
  27. "JSON5". json5. https://json5.org/. 
  28. "The JSON Data Interchange Syntax". Ecma International. December 2017. https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf. "The JSON syntax is not a specification of a complete data interchange. Meaningful data interchange requires agreement between a producer and consumer on the semantics attached to a particular use of the JSON syntax. What JSON does provide is the syntactic framework to which such semantics can be attached" 
  29. "ECMAScript 2019 Language Specification". Ecma International. June 2019. http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf. 
  30. "Media Types". iana.org. https://www.iana.org/assignments/media-types/application/index.html. 
  31. 31.0 31.1 31.2 "Handle application/json & text/json by benschwarz · Pull Request #2 · mislav/faraday-stack". GitHub. https://github.com/mislav/faraday-stack/pull/2. 
  32. "Yahoo!, JavaScript, and JSON". ProgrammableWeb. 2005-12-16. http://blog.programmableweb.com/2005/12/16/yahoo-javascript-and-json/. 
  33. "Make JSON requests allow text/javascript content by jakeboxer · Pull Request #148 · AFNetworking/AFNetworking". GitHub. https://github.com/AFNetworking/AFNetworking/pull/148. 
  34. "lift/Req.scala at master · lift/lift · GitHub". GitHub. https://github.com/lift/lift/blob/master/framework/lift-base/lift-webkit/src/main/scala/net/liftweb/http/Req.scala. 
  35. "BrowserIO.js in legacy/branches/0.4/src/io – Dojo Toolkit". dojotoolkit.org. https://bugs.dojotoolkit.org/browser/legacy/branches/0.4/src/io/BrowserIO.js. 
  36. "JSON Schema and Hyper-Schema". json-schema.org. https://json-schema.org//. 
  37. "draft-handrews-json-schema-00 - JSON Schema: A Media Type for Describing JSON Documents". json-schema.org/. 2021-01-28. https://json-schema.org/latest/json-schema-core.html. 
  38. "JSON Schema Implementations". json-schema.org. https://json-schema.org/implementations.html. 
  39. Bray, Tim (December 2017). "11. IANA Considerations". RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format (IETF). doi:10.17487/RFC8259. https://datatracker.ietf.org/doc/html/rfc8259#section-11. 
  40. Zyp, Kris (September 16, 2012). Bryan, Paul C.. ed. JSON Reference: draft-pbryan-zyp-json-ref-03. https://datatracker.ietf.org/doc/html/draft-pbryan-zyp-json-ref-03. 
  41. Crockford, Douglas (2019-05-16). "JSMin". https://www.crockford.com/jsmin.html. "JSMin [2001] is a minification tool that removes comments and unnecessary whitespace from JavaScript files." 
  42. "JSON: The JavaScript subset that isn't". Magnus Holm. http://timelessrepo.com/json-isnt-a-javascript-subset. 
  43. "ECMAScript Fifth Edition". http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf. 
  44. "douglascrockford/JSON-js". 2019-08-13. https://github.com/douglascrockford/JSON-js/blob/master/json2.js. 
  45. "Denial of Service and Unsafe Object Creation Vulnerability in JSON (CVE-2013-0269)". https://www.ruby-lang.org/en/news/2013/02/22/json-dos-cve-2013-0269/. 
  46. "Microsoft .NET Framework JSON Content Processing Denial of Service Vulnerability". http://tools.cisco.com/security/center/viewAlert.x?alertId=31048. 
  47. "JSON: The Fat-Free Alternative to XML". json.org. http://www.json.org/xml.html. 
  48. "XML 1.1 Specification". World Wide Web Consortium. https://www.w3.org/TR/xml11/. 
  49. Saternos, Casimir (2014). Client-server web apps with Javascript and Java. "O'Reilly Media, Inc.". p. 45. ISBN 9781449369316. 
  50. Edelman, Jason; Lowe, Scott; Oswalt, Matt. Network Programmability and Automation. O'Reilly Media. "for data representation you can pick one of the following: YAML, YAMLEX, JSON, JSON5, HJSON, or even pure Python" 
  51. 51.0 51.1 McCombs, Thayne (July 16, 2018). "Why JSON isn't a good configuration language". Lucid Chart. https://www.lucidchart.com/techblog/2018/07/16/why-json-isnt-a-good-configuration-language/. 
  52. "HOCON (Human-Optimized Config Object Notation)". 2019-01-28. https://github.com/lightbend/config/blob/master/HOCON.md. "The primary goal is: keep the semantics (tree structure; set of types; encoding/escaping) from JSON, but make it more convenient as a human-editable config file format." 
  53. 53.0 53.1 "YAML Ain't Markup Language (YAML™) Version 1.2". yaml.org. http://www.yaml.org/spec/1.2/spec.html. 
  54. CSON, specification and README, last updated: 2021-07-01.
  55. "config/HOCON.md at master · lightbend/config" (in en). https://github.com/lightbend/config. 
  56. "Config File - 2.5.x". https://www.playframework.com/documentation/2.5.x/ConfigFile. 
  57. Akka.NET HOCON Docs
  58. "Akka.NET Documentation | Akka.NET Documentation". https://getakka.net/. 
  59. Managing HOCON configuration files with Puppet
  60. "StreamBase Documentation". https://docs.streambase.com/latest/index.jsp. 
  61. "Configuration Guide". https://docs.streambase.com/latest/topic/com.streambase.sb.ide.help/data/html/hocon/index.html. 
  62. "StreamBase New and Noteworthy Archive". https://docs.streambase.com/latest/topic/com.streambase.sb.ide.help/data/html/dochome/xarchive-sb-noteworthy.html. 
  63. Exabeam Advanced Analytics Release Notes
  64. JITSI Project. "Config phase 1". https://github.com/jitsi/jitsi-videobridge/commit/676fb3df696c4737ac086fb856af1f85c6ded90e. 
  65. JITSI Project. "reference.conf". https://github.com/jitsi/jicofo/blob/master/src/main/resources/reference.conf. 
  66. "The JSON5 Data Interchange Format". https://spec.json5.org/. 
  67. SQLite. "JSON Functions And Operators". https://www.sqlite.org/json1.html#json5_extensions. 
  68. "JSON with Comments - JSON editing in Visual Studio Code" (in en). https://code.visualstudio.com/docs/languages/json#_json-with-comments. 
  69. Butler, H.; Daly, M.; Doyle, A.; Gillies, Sean; Schaub, T.; Hagen, Stefan (August 2016). RFC 7946 - The GeoJSON Format. https://datatracker.ietf.org/doc/html/rfc7946. Retrieved 2022-06-17. 
  70. "GeoJSON". https://geojson.org/. 
  71. "JSON→URL Specification". Ongoing. https://jsonurl.github.io/specification/. Retrieved 9 April 2021. 
  72. "JSON inside a URL" (in en). https://www.jsonurl.org/. 
  73. "JSON-LD 1.1". 2020-07-16. https://www.w3.org/TR/json-ld/. 
  74. "JSON-LD - JSON for Linking Data". https://json-ld.org/. 
  75. "JSON-RPC". https://www.jsonrpc.org/. 
  76. "JsonML (JSON Markup Language)". http://www.jsonml.org/. 
  77. McKamey, Stephen (2022-06-14), JsonML, https://github.com/mckamey/jsonml, retrieved 2022-08-07 
  78. "FasterXML/smile-format-specification: New home for Smile format". https://github.com/FasterXML/smile-format-specification. 
  79. Gupta, Ayush (2019-02-10). "Understanding Smile — A data format based on JSON" (in en). https://medium.com/code-with-ayush/understanding-smile-a-data-format-based-on-json-29972a37d376. 
  80. "Universal Binary JSON Specification – The universally compatible format specification for Binary JSON". https://ubjson.org/. 
  81. "UBJSON - JSON for Modern C++". https://json.nlohmann.me/features/binary_formats/ubjson/. 

External links

Template:Data exchange