请输入您要查询的百科知识:

 

词条 JSON
释义

  1. History

  2. Data types and syntax

     Example  Data portability issues  Using JSON in JavaScript  Unsupported native data types 

  3. Schema and metadata

     JSON Schema 

  4. MIME type

  5. Applications

     JSON-RPC  AJAJ 

  6. Security considerations

  7. Vulnerabilities in specific JSON parsers

  8. Object references

  9. Comparison with other formats

     YAML  XML  Samples  JSON sample  YAML sample  XML samples 

  10. See also

  11. Notes

  12. References

  13. External links

{{Redirect|Json|people with similar names|J Son (disambiguation){{!}}J Son}}{{Infobox file format
| icon =
| mime = application/json
| type code = TEXT
| extension = .json
| uniform type = public.json
| genre = Data interchange
| extended from = JavaScript
| standard = {{IETF RFC|8259}}, ECMA-404
| url = {{URL|https://json.org/}}
}}

In computing, JavaScript Object Notation (JSON) ({{IPAc-en|ˈ|dʒ|eɪ|s|ən}} "jay-son", {{IPAc-en|dʒ|eɪ|ˈ|s|ɒ|n}})[1] is an open-standard file format that uses human-readable text to transmit data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is a very common data format used for asynchronous browser–server communication, including as a replacement for XML in some AJAX-style systems.[2]

JSON is a language-independent data format. It was derived from JavaScript, but {{as of | 2017 | lc=on}} many programming languages include code to generate and parse JSON-format data. The official Internet media type for JSON is application/json. JSON filenames use the extension .json.

Douglas Crockford originally specified the JSON format in the early 2000s; two competing standards, {{IETF RFC|8259}} and ECMA-404,[3] defined it in 2017. The ECMA standard describes only the allowed syntax, whereas the RFC covers some security and interoperability considerations.[4]{{anchor|I-JSON}}A restricted profile of JSON, known as I-JSON (short for "Internet JSON"), seeks to overcome some of the interoperability problems with JSON. It is defined in {{IETF RFC|7493}}.[5]

History

{{Refimprove section|date=March 2018}}

JSON grew out of a need for stateless, real-time server-to-browser communication protocol without using browser plugins such as Flash or Java applets, the dominant methods used in the early 2000s.{{Citation needed|date=December 2016}}

Douglas Crockford first specified[6] and popularized the JSON format. 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 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 or JSON, as well as under what license type to make it available. Crockford, being inspired by the words of then President Bush, should also be credited with coming up with the "evil-doers" JSON license ("The Software shall be used for Good, not Evil.") in order to open-source the JSON libraries, but force (troll) corporate lawyers, or those who are overly pedantic, to seek to pay for a license from State. Chip Morningstar developed the idea for the State Application Framework at State Software.[7][8]{{Dead link|date=December 2018}} On the other hand, this clause led to license compatibility problems of the JSON license with other open-source licenses.[9]

A precursor to the JSON libraries was used in a children's digital asset trading game project named Cartoon Orbit at Communities.com (the State co-founders had all worked at this company previously) for Cartoon Network, which used a browser side plug-in with a proprietary messaging format to manipulate DHTML elements (this system is also owned by 3DO). 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. The JSON.org[10] website was launched in 2002. In December 2005, Yahoo! began offering some of its Web services in JSON.[11]

JSON was originally intended to be a subset of the JavaScript scripting language (specifically, Standard ECMA-262 3rd Edition—December 1999[12]{{Request quotation|date=January 2017}}) 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.

Though JSON was originally advertised and believed to be a strict subset of JavaScript and ECMAScript,[13]{{failed verification|date=January 2017}} it inadvertently allows some unescaped characters in strings that are illegal in JavaScript and ECMAScript string literals. See Data portability issues below.

JSON itself became an ECMA international standard in 2013 as the ECMA-404 standard.[14]

In the same year {{IETF RFC|7158}} used ECMA-404 as reference. In 2014 {{IETF RFC|7159}} became the main reference for JSON's internet uses (ex. MIME application/json), and obsoletes {{IETF RFC|4627}} and {{IETF RFC|7158}} (but preserving ECMA-262 and ECMA-404 as main references). In December 2017, {{IETF RFC|7159}} was made obsolete by {{IETF RFC|8259}}.

Data types and syntax

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 a double-precision floating-point format for all its numeric values, 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 values, each of which may be of any type. Arrays use square bracket notation and elements are comma-separated.
  • Object: an unordered collection of name–value pairs where the names (also called keys) are strings. Since objects are intended to represent associative arrays,[14] it is recommended, though not required,[16] that each key is unique within an object. 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

Limited whitespace is allowed and ignored around or between syntactic elements (values and punctuation, but not within a string value). Only 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.

Early versions of JSON (such as specified by {{IETF RFC|4627}}) required that a valid JSON "document" must consist of only an object or an array type, which could contain other types within them.

Example

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

{
  "firstName": "John",  "lastName": "Smith",  "isAlive": true,  "age": 27,  "address": {    "streetAddress": "21 2nd Street",    "city": "New York",    "state": "NY",    "postalCode": "10021-3100"  },  "phoneNumbers": [    {      "type": "home",      "number": "212 555-1234"    },    {      "type": "office",      "number": "646 555-4567"    },    {      "type": "mobile",      "number": "123 456-7890"    }  ],  "children": [],  "spouse": null

}

Data portability issues

Although Douglas Crockford originally asserted that JSON is a strict subset of JavaScript, his specification actually allows valid JSON documents that are invalid JavaScript. Specifically, JSON allows the Unicode line terminators {{unichar|2028|LINE SEPARATOR}} and {{unichar|2029|PARAGRAPH SEPARATOR}} to appear unescaped in quoted strings, while ECMAScript 2018 and older does not.[15][16] This is a consequence of JSON disallowing only "control characters". For maximum portability, these characters should be backslash-escaped. This subtlety is important when generating JSONP.

JSON exchange in an open ecosystem must be encoded in UTF-8.[17] The encoding supports the full Unicode character set, including those characters outside the Basic Multilingual Plane (U+10000 to U+10FFFF). However, if escaped, those characters must be written using UTF-16 surrogate pairs, a detail missed by some JSON parsers. For example, to include the Emoji character {{unichar|1F602|FACE WITH TEARS OF JOY}} in JSON:

{ "face": "😂" }

// or

{ "face": "\\uD83D\\uDE02" }

Numbers in JSON are agnostic with regard to their representation within programming languages. No differentiation is made between an integer and floating-point value: some implementations may treat 42, 42.0, and 4.2E+1 as the same number while others may not. Furthermore, no requirements are made regarding implementation issues such as overflow, underflow, loss of precision, or rounding. Additionally, JSON says nothing about the treatment of signed zeros: whether 0.0 is distinct from -0.0. Most implementations that use the IEEE 754 floating-point standard, including JavaScript, preserve signed zeros; but not all JSON implementations may do so.

Using JSON in JavaScript

{{As of|2018}}, all major browsers support at least the fifth edition ECMAScript which provides[18] a safe and fast method of decoding JSON:

var p = JSON.parse(json_string);

Unsupported native data types

JavaScript syntax defines several native data types that are not included in the JSON standard:[19] Map, Set, Date, Error, Regular Expression, Function, Promise, and undefined.[20] These JavaScript data types must be represented by some other data format, with the programs on both ends agreeing on how to convert between the types. {{As of|2011}}, there are some de facto standards, e.g., converting from Date to String, but none universally recognized.[21][22] Other languages may have a different set of native types that must be serialized carefully to deal with this type of conversion.

Schema and metadata

JSON Schema

{{anchor|Schema}}

JSON Schema[23] 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.

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 is self-describing. It is specified in an Internet Draft at the IETF, currently in its 7th draft, which was released on March 18, 2018.[24] There are several validators available for different programming languages,[25] each with varying levels of conformance.

There is no standard file extension, but some have suggested .schema.json.[26]

Example JSON Schema (draft 4):

{
  "$schema": "http://json-schema.org/schema#",  "title": "Product",  "type": "object",  "required": ["id", "name", "price"],  "properties": {    "id": {      "type": "number",      "description": "Product identifier"    },    "name": {      "type": "string",      "description": "Name of the product"    },    "price": {      "type": "number",      "minimum": 0    },    "tags": {      "type": "array",      "items": {        "type": "string"      }    },    "stock": {      "type": "object",      "properties": {        "warehouse": {          "type": "number"        },        "retail": {          "type": "number"        }      }    }  }

}

The JSON Schema above can be used to test the validity of the JSON code below:

{
  "id": 1,  "name": "Foo",  "price": 123,  "tags": [    "Bar",    "Eek"  ],  "stock": {    "warehouse": 300,    "retail": 20  }

}

MIME type

The official MIME type for JSON text is "application/json",[27] and most modern implementations have adopted this.

The (unofficial) MIME type "text/json" or the content-type "text/javascript" also get legacy support by many service providers, browsers, servers, web applications, libraries, frameworks, and APIs. Notable examples include the Google Search API,[28] Yahoo!,[28][29] Flickr,[28] Facebook API,[30] Lift framework,[31] Dojo Toolkit 0.4,[32] etc.

Applications

JSON-RPC

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.

Example of a JSON-RPC 2.0 request and response using positional parameters.

--> {"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1}

<-- {"jsonrpc": "2.0", "result": 19, "id": 1}

AJAJ

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.

The following JavaScript code is an example of a client using XMLHttpRequest to request data in JSON format from a server. (The server-side programming is omitted; it must be set up to service requests to the url containing a JSON-formatted string.)

var my_JSON_object;

var http_request = new XMLHttpRequest();

http_request.open("GET", url, true);

http_request.responseType = "json";

http_request.onreadystatechange = function () {

  var done = 4, ok = 200;  if (http_request.readyState === done && http_request.status === ok) {    my_JSON_object = http_request.response;  }

};

http_request.send(null);

Security considerations

JSON is intended as a data serialization format. However, its design as a non-strict subset of JavaScript can lead to the misconception that it is safe to pass JSON strings to the JavaScript {{code|lang=javascript|code=eval()}} function. This is not safe, due to the fact that certain valid JSON strings are actually not valid JavaScript code.[33]

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[34], which as of 2017 is supported by all major browsers. For non-supported browsers, an API-compatible JavaScript library[35] is provided by Douglas Crockford.

Vulnerabilities in specific JSON parsers

Various JSON parser implementations have suffered from denial-of-service attack and mass assignment vulnerability.[36][37]

Object references

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

The Dojo Toolkit supports object references using standard JSON; specifically, the dojox.json.ref module provides support for several forms of referencing including circular, multiple, inter-message, and lazy referencing.[39][40][41]

Alternatively, non-standard solutions exist such as the use of Mozilla JavaScript Sharp Variables. However this functionality became obsolete with JavaScript 1.8.5 and was removed in Firefox version 12.[42]

Comparison with other formats

{{See also|Comparison of data serialization formats}}

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.[43] Apart from XML, examples could include OGDL, YAML and CSV. Also, Google Protocol Buffers can fill this role, although it is not a data interchange language.

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. (This is common practice when injecting JSON into HTML to protect against cross-site scripting attacks.) Nonetheless, many YAML parsers can natively parse the output from many JSON encoders.[44]

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 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. If the data is compressed using an algorithm like gzip, there is little difference because compression is good at saving space when a pattern is repeated.

XML also has the concept of schema. This permits strong typing, user-defined types, predefined tags, and formal structure, allowing for formal validation of an XML stream in a portable way. Similarly, there is an IETF draft proposal for a schema system for JSON.[45]

XML supports comments, but JSON does not.[46]

Samples

JSON sample

{
  "firstName": "John",  "lastName": "Smith",  "age": 25,  "address": {    "streetAddress": "21 2nd Street",    "city": "New York",    "state": "NY",    "postalCode": "10021"  },  "phoneNumber": [    {      "type": "home",      "number": "212 555-1234"    },    {      "type": "fax",      "number": "646 555-4567"    }  ],  "gender": {    "type": "male"  }

}

Both of the following examples carry the same kind of information as the JSON example above in different ways. More [https://codeblogmoney.com/json-example-with-data-types-including-json-array/ JSON Examples].

YAML sample

The JSON code above is also entirely valid YAML. YAML also offers an alternative syntax intended to be more human-accessible by replacing nested delimiters like {}, [], and " marks with off-side indentation.[44]

firstName: John

lastName: Smith

age: 25

address:

  streetAddress: 21 2nd Street  city: New York  state: NY  postalCode: '10021'

phoneNumber:

- type: home- type: fax

gender:

XML samples

JohnSmith25
21 2nd StreetNew YorkNY10021
home212 555-1234fax646 555-4567male

The properties can also be serialized using attributes instead of tags:

The XML encoding may therefore be comparable in length to the equivalent JSON encoding. A wide range of XML processing technologies exist, from the Document Object Model to XPath and XSLT. XML can also be styled for immediate display using CSS. XHTML is a form of XML so that elements can be passed in this form ready for direct insertion into webpages using client-side scripting.

See also

  • JSON streaming
  • Other formats
    • HOCON—Human-Optimized Config Object Notation, a superset of JSON
    • YAML—Another datastorage format that is a superset of JSON[47]
    • S-expression—the comparable LISP format for trees as text.
    • JSONP—JSON with Padding, a pattern of usage commonly employed when retrieving JSON across domains
    • GeoJSON—an open format for encoding a variety of geographic data structures
    • JSON-LD—JavaScript object notation for linked data, a W3C recommendation
    • JSON-RPC
    • SOAPjr—a hybrid of SOAP and JR (JSON-RPC)
    • JsonML
    • TOML
  • Binary encodings for JSON
    • BSON
    • MessagePack
    • Smile
    • UBJSON
    • EXI4JSON (EXI for JSON)—representation by means of the Efficient XML Interchange (EXI) standard
  • Implementations:
    • Jayrock—an open source implementation of JSON for the .NET Framework.
    • Ember data server implementations for PHP, Node.js, Ruby, Python, Go, .NET and Java.
    • Jackson for Java.
  • Other
    • Comparison of data serialization formats

Notes

1. ^{{cite web | title = Doug Crockford "Google Tech Talks: JavaScript: The Good Parts" | date = 7 February 2009 | url = https://www.youtube.com/watch?v=hQVTIJBZook&t=2405 }}
2. ^{{cite web|title=A Modern Reintroduction To AJAX|url=http://www.javascript-coder.com/tutorials/re-introduction-to-ajax.phtml|accessdate=12 April 2017|ref=jajax}}
3. ^{{cite web|url=https://www.ecma-international.org/publications/standards/Ecma-404.htm|title=Standard ECMA-404|website=www.ecma-international.org}}
4. ^{{cite web|last= Bray|first= Tim|title= JSON Redux AKA RFC8259|url= https://www.tbray.org/ongoing/When/201x/2014/03/05/RFC7159-JSON|work= Ongoing|accessdate= 16 March 2014}}
5. ^{{cite|editor-last=Bray|editor-first=Tim|title=The I-JSON Message Format|publisher=Internet Engineering Task Force (IETF)|rfc=7493}}
6. ^{{cite web | url= https://www.youtube.com/watch?v=-C-JoyNuQJs | title= Douglas Crockford — The JSON Saga | publisher= YouTube | date= 28 August 2011 | accessdate= 23 September 2016}}
7. ^{{cite web | title = Chip Morningstar Biography | date = n.d. | url = http://www.fudco.com/chip/resume.html }}
8. ^{{cite news | url = http://www.prnewswire.com/news-releases/state-software-breaks-through-web-app-development-barrier-with-state-application-framework-75971782.html | title = State Software Breaks Through Web App Development Barrier With State Application Framework: Software Lets Developers Create Truly Interactive Applications; Reduces Costs, Development Time and Improves User Experience | date = February 12, 2002 | work = PR Newswire }}
9. ^[https://lwn.net/Articles/707510/ Apache and the JSON license] on LWN.net by Jake Edge (November 30, 2016)
10. ^{{cite web|url=http://json.org/|title=JSON|website=json.org}}
11. ^{{cite web |url= http://developer.yahoo.com/common/json.html |title= Using JSON with Yahoo! Web services |author= Yahoo! |accessdate= July 3, 2009 | archiveurl = https://web.archive.org/web/20071011085815/http://developer.yahoo.com/common/json.html |archivedate= October 11, 2007}}
12. ^{{cite web| url = http://json.org | title = Introducing JSON | publisher = json.org |first=Douglas |last=Crockford |authorlink=Douglas Crockford |date=May 28, 2009 |accessdate=July 3, 2009}}
13. ^{{Cite web|url=http://www.json.org/js.html |title=JSON in JavaScript |date=2016-07-10 |access-date=2016-08-13 |author=Douglas Crockford |deadurl=bot: unknown |archiveurl=https://web.archive.org/web/20160710230817/http://www.json.org/js.html |archivedate=2016-07-10 |df= }}
14. ^{{cite web| url= http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf| title= The JSON Data Interchange Format | publisher= ECMA International| date= October 2013 | accessdate= 23 September 2016}}
15. ^{{cite web|url=http://timelessrepo.com/json-isnt-a-javascript-subset|title=JSON: The JavaScript subset that isn't|author=Holm, Magnus|date=15 May 2011|publisher=The timeless repository|accessdate=23 September 2016}}
16. ^{{cite web|url=https://tc39.github.io/proposal-json-superset/|title=TC39 Proposal: Subsume JSON|date=22 May 2018|publisher=ECMA TC39 committee}}
17. ^{{cite web | url=https://tools.ietf.org/html/rfc8259 | title= The JavaScript Object Notation (JSON) Data Interchange Format | publisher=IETF | date= December 2017 | accessdate=16 February 2018}}
18. ^{{cite web|url=http://www.ecma-international.org/publications/standards/Ecma-262.htm|title=Standard ECMA-262|work=ecma-international.org|accessdate=13 September 2015}}
19. ^{{cite web | url=https://tools.ietf.org/html/rfc7519 | title=JSON Web Token (JWT) | publisher=IETF | date=May 2015 | accessdate=23 September 2016}}
20. ^The undefined type was left out of the JSON standard, and one finds suggestions that null be used instead.In fact, the current standard says that for a sparse array such as: var v = [0]; v[3] = 3;which behaves in JavaScript as if it were: var vx = [0, undefined, undefined, 3];with the undefined entries being only implicit rather than explicit, should translate to JSON as if it were: var vx = [0, null, null, 3];with explicit null fillers for the undefined entries.Furthermore, in JavaScript {a: undefined} often behaves the same as {}. Both translate as "{}" in JSON. However undefined as an explicit property value does have use in JavaScript inheritance situations such as: var x = {a: 1}; var xi = Object.create(x); xi.a = undefined;where the inheritance of x's property a is overridden in xi and makes it pretty much behave as if nothing was inherited. JSON.stringify itself ignores inherited values - it only translates the enumerable own properties as given by Object.keys(y). The default stringification, while not encoding inheritance, can (except for undefined values) encode enough of an object to reconstruct it in an environment that knows what inheritance it should have.To encode JavaScript objects that contain explicit undefined values a convention for representing undefined must be established, such as mapping it to the string "UNDEFINED". One can then pass JSON.stringify the optional replacer argument to translate with this convention: var y = {a: undefined}; var ys = JSON.stringify(y, function (k, v){return (v === undefined) ? "UNDEFINED" : v});Converting this JSON back into JavaScript is not as straightforward. While JSON.parse can take an optional reviver argument that is, essentially, the inverse of a replacer, it can't be used in this situation. If that function returns undefined, the JSON.parse logic interprets this to mean to not define a property rather than define one with a undefined value. Instead one has to explicitly post process the result from JSON.parse replacing each "UNDEFINED" with undefined.
21. ^{{cite web|url=https://stackoverflow.com/questions/206384/how-to-format-a-json-date|title=jquery - Format a Microsoft JSON date? - Stack Overflow|work=stackoverflow.com|accessdate=13 September 2015}}
22. ^{{cite web|url=http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx|title=Tales from the Evil Empire - Dates and JSON|work=asp.net|accessdate=13 September 2015}}
23. ^{{cite web|url=http://json-schema.org/|title=JSON Schema and Hyper-Schema|work=json-schema.org|accessdate=13 September 2015}}
24. ^{{cite web|url=https://json-schema.org/latest/json-schema-core.html|title=draft-handrews-json-schema-01 - JSON Schema: A Media Type for Describing JSON Documents|work=json-schema.org/|accessdate=10 February 2019}}
25. ^{{cite web|url=https://json-schema.org/implementations.html|title=JSON Schema Implementations|work=json-schema.org|accessdate=10 February 2019}}
26. ^{{cite web|url=http://stackoverflow.com/a/10507586/287948|title=Json Schema file extension|website=Stack Overflow}}
27. ^{{cite web|url=http://www.iana.org/assignments/media-types/application/index.html|title=Media Types|work=iana.org|accessdate=13 September 2015}}
28. ^{{cite web|url=https://github.com/mislav/faraday-stack/pull/2|title=Handle application/json & text/json by benschwarz · Pull Request #2 · mislav/faraday-stack|work=GitHub|accessdate=13 September 2015}}
29. ^{{cite web|url=http://blog.programmableweb.com/2005/12/16/yahoo-javascript-and-json/|title=Yahoo!, JavaScript, and JSON|work=ProgrammableWeb|accessdate=13 September 2015}}
30. ^{{cite web|url=https://github.com/AFNetworking/AFNetworking/pull/148|title=Make JSON requests allow text/javascript content by jakeboxer · Pull Request #148 · AFNetworking/AFNetworking|work=GitHub|accessdate=13 September 2015}}
31. ^{{cite web|url=https://github.com/lift/lift/blob/master/framework/lift-base/lift-webkit/src/main/scala/net/liftweb/http/Req.scala|title=lift/Req.scala at master · lift/lift · GitHub|work=GitHub|accessdate=13 September 2015}}
32. ^{{cite web|url=https://bugs.dojotoolkit.org/browser/legacy/branches/0.4/src/io/BrowserIO.js|title=BrowserIO.js in legacy/branches/0.4/src/io – Dojo Toolkit|work=dojotoolkit.org|accessdate=13 September 2015}}
33. ^{{cite web|title=JSON: The JavaScript subset that isn't|url=http://timelessrepo.com/json-isnt-a-javascript-subset|publisher=Magnus Holm|accessdate=16 May 2011}}
34. ^{{cite web|url=http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf|title=ECMAScript Fifth Edition|accessdate=March 18, 2011|archiveurl=https://web.archive.org/web/20110414214458/http://www.ecma-international.org:80/publications/files/ECMA-ST/ECMA-262.pdf|archivedate={{date|2011-04-14}} }}
35. ^{{cite web|url=https://github.com/douglascrockford/JSON-js/blob/master/json2.js|title=douglascrockford/JSON-js|website=GitHub}}
36. ^{{cite web | url=https://www.ruby-lang.org/en/news/2013/02/22/json-dos-cve-2013-0269/ | title=Denial of Service and Unsafe Object Creation Vulnerability in JSON (CVE-2013-0269) | accessdate=January 5, 2016}}
37. ^{{cite web | url=http://tools.cisco.com/security/center/viewAlert.x?alertId=31048 | title=Microsoft .NET Framework JSON Content Processing Denial of Service Vulnerability | accessdate=January 5, 2016}}
38. ^{{cite web |last=Zyp |first=Kris |editor-last=Bryan |editor-first=Paul C. |title=JSON Reference: draft-pbryan-zyp-json-ref-03 |website=Internet Engineering Task Force |date=September 16, 2012 |url=http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03 }}
39. ^{{cite web |last=Zyp |first=Kris |website=Dojo |title=dojox.json.ref |url=https://dojotoolkit.org/reference-guide/dojox/json/ref.html }}
40. ^{{cite web |url=http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo |title=JSON referencing in Dojo |first=Kris |last=Zyp |date=June 17, 2008 |website=SitePen |accessdate=July 3, 2009}}
41. ^{{cite web|url=http://nubuntu.org/json-referencing-jquery |title=JSON referencing in jQuery |first=Tys |last=von Gaza |date=Dec 7, 2010 |website=NUBUNTU |accessdate=Dec 7, 2010 |deadurl=yes |archiveurl=https://web.archive.org/web/20150507001842/http://nubuntu.org/json-referencing-jquery |archivedate=May 7, 2015 }}
42. ^{{cite web|url=https://developer.mozilla.org/en/Sharp_variables_in_JavaScript|title=Sharp variables in JavaScript|website=Mozilla Developer Network|date=April 4, 2015|accessdate=21 April 2012}}
43. ^{{cite web|title=JSON: The Fat-Free Alternative to XML|url=http://www.json.org/xml.html|publisher=json.org|accessdate=14 March 2011}}
44. ^{{cite web|url=http://www.yaml.org/spec/1.2/spec.html|title=YAML Ain’t Markup Language (YAML™) Version 1.2|work=yaml.org|accessdate=13 September 2015}}
45. ^{{Cite web|url=http://json-schema.org/documentation.html|title=JSON Schema|website=json-schema.org|language=en|access-date=2017-04-10}}
46. ^{{cite book|last1=Saternos|first1=Casimir|title=Client-server web apps with Javascript and Java|date=2014|isbn=9781449369316|page=45}}
47. ^{{cite web|author1=Oren Ben-Kiki|author2=Clark Evans|author3=Ingy döt Net|title=YAML Ain’t Markup Language (YAML™) Version 1.2|url=http://www.yaml.org/spec/1.2/spec.html#id2759572|accessdate=29 August 2015}}

References

{{Reflist|30em}}

External links

{{Sister project links |wikt=JSON |commons=Category:JavaScript Object Notation |b=JavaScript/Handling JSON |n=no |q=no |s=no |v=no}}
  • {{official website|http://www.json.org/}}
  • {{cite web |url= http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf |format= pdf |title= ECMA-404 JSON Data Interchange Format |publisher= ECMA Int'l }}
  • {{IETF RFC|8259}}, JSON Data Interchange Format
  • {{IETF RFC|7049}}, Concise Binary Object Representation (CBOR) for JSON
  • [https://jsonformatter.org JSON Formatter]
  • [https://jsonlint.com/ JSON lint]
  • [https://codebeautify.org/jsonviewer JSON Viewer/Editor]
  • [https://jsonformatter.org/json-parser/ JSON Parser]
  • [https://jsongrid.com/json-grid JSON Grid]
{{Data Exchange}}{{Authority control}}

7 : Computer-related introductions in 2001|Ajax (programming)|Data serialization formats|JSON|Markup languages|Configuration files|Open formats

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 22:24:31