ECMA 404-2013 The JSON Data Interchange Format (1st Edition).pdf
《ECMA 404-2013 The JSON Data Interchange Format (1st Edition).pdf》由会员分享,可在线阅读,更多相关《ECMA 404-2013 The JSON Data Interchange Format (1st Edition).pdf(14页珍藏版)》请在麦多课文档分享上搜索。
1、 Reference number ECMA-123:2009 Ecma International 2009 ECMA-404 1st Edition / October 2013 The JSON Data Interchange Format Ecma International 2013 COPYRIGHT PROTECTED DOCUMENT i Ecma International 2013 Contents Page 1 Scope 1 2 Conformance . 1 3 Normative references 1 4 JSON Text. 1 5 JSON Values
2、2 6 Objects 2 7 Arrays . 3 8 Numbers . 3 9 String 4 ii Ecma International 2013 Introduction JSON is a text format that facilitates structured data interchange between all programming languages. JSON is syntax of braces, brackets, colons, and commas that is useful in many contexts, profiles, and appl
3、ications. JSON was inspired by the object literals of JavaScript aka ECMAScript as defined in the ECMAScript Language Specification, third Edition 1. It does not attempt to impose ECMAScripts internal data representations on other programming languages. Instead, it shares a small subset of ECMAScrip
4、ts textual representations with all other programming languages. JSON is agnostic about numbers. In any programming language, there can be a variety of number types of various capacities and complements, fixed or floating, binary or decimal. That can make interchange between different programming la
5、nguages difficult. JSON instead offers only the representation of numbers that humans use: a sequence of digits. All programming languages know how to make sense of digit sequences even if they disagree on internal representations. That is enough to allow interchange. JSON text is a sequence of Unic
6、ode code points. JSON also depends on Unicode in the hex numbers used in the u escapement notation. Programming languages vary widely on whether they support objects, and if so, what characteristics and constraints the objects offer. The models of object systems can be wildly divergent and are conti
7、nuing to evolve. JSON instead provides a simple notation for expressing collections of name/value pairs. Most programming languages will have some feature for representing such collections, which can go by names like record, struct, dict, map, hash, or object. JSON also provides support for ordered
8、lists of values. All programming languages will have some feature for representing such lists, which can go by names like array, vector, or list. Because objects and arrays can nest, trees and other complex data structures can be represented. By accepting JSONs simple convention, complex data struct
9、ures can be easily interchanged between incompatible programming languages. JSON does not support cyclic graphs, at least not directly. JSON is not indicated for applications requiring binary data. It is expected that other standards will refer to this one, strictly adhering to the JSON text format,
10、 while imposing restrictions on various encoding details. Such standards may require specific behaviours. JSON itself specifies no behaviour. Because it is so simple, it is not expected that the JSON grammar will ever change. This gives JSON, as a foundational notation, tremendous stability. JSON wa
11、s first presented to the world at the JSON.org website in 2001. JSON stands for JavaScript Object Notation. This Ecma Standard was adopted by a General Assembly postal vote in October 2013. iii Ecma International 2013 “COPYRIGHT NOTICE 2013 Ecma International This document may be copied, published a
12、nd distributed to others, and certain derivative works of it may be prepared, copied, published, and distributed, in whole or in part, provided that the above copyright notice and this Copyright License and Disclaimer are included on all such copies and derivative works. The only derivative works th
13、at are permissible under this Copyright License and Disclaimer are: (i) works which incorporate all or portion of this document for the purpose of providing commentary or explanation (such as an annotated version of the document), (ii) works which incorporate all or portion of this document for the
14、purpose of incorporating features that provide accessibility, (iii) translations of this document into languages other than English and into differe nt formats and (iv) works by making use of this specification in sta ndard conformant products by im plementing (e.g. by copy and paste wholly or partl
15、y) the functionality therein. However, the content of this document itself may not be modified in any way, including by removing the copyright notice or references to Ecma International, except as required to translate it into languages other than English or into a different format. The official ver
16、sion of an Ecma International document is the English language version on the Ecma International website. In the event of discrepancies between a translated version and the official version, the official version shall govern. The limited permissions granted above are perpetual and will not be revoke
17、d by Ecma Internati onal or its successors or assigns. This document and the information contained herein is provided on an “AS IS“ basis and ECMA INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INF
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ECMA4042013THEJSONDATAINTERCHANGEFORMAT1STEDITIONPDF

链接地址:http://www.mydoc123.com/p-704837.html