Appendix A. Changes from RFC 4627 (附录A. 相对RFC 4627的变更)
This section lists changes between this document and the text in RFC 4627.
本节列出了本文档与RFC 4627文本之间的变更。
-
Changed the title and abstract of the document. 更改了文档的标题和摘要。
-
Changed the reference to [UNICODE] to be not version specific. 将对[UNICODE]的引用更改为非特定版本。
-
Added a "Specifications of JSON" section. 添加了"JSON的规范"一节。
-
Added an "Introduction to This Revision" section. 添加了"本修订版简介"一节。
-
Changed the definition of "JSON text" so that it can be any JSON value, removing the constraint that it be an object or array. 更改了"JSON文本"的定义,使其可以是任何JSON值,去除了必须是对象或数组的约束。
-
Added language about duplicate object member names, member ordering, and interoperability. 添加了关于重复对象成员名称、成员顺序和互操作性的描述。
-
Clarified the absence of a requirement that values in an array be of the same JSON type. 澄清了不要求数组中的值属于同一JSON类型。
-
Applied erratum #607 from RFC 4627 to correctly align the artwork for the definition of "object". 应用了RFC 4627的勘误#607,以正确对齐"对象"定义的插图。
-
Changed "as sequences of digits" to "in the grammar below" in the "Numbers" section, and made base-10-ness explicit. 在"数字"一节中将"作为数字序列"更改为"在下面的语法中",并明确指出以10为基数。
-
Added language about number interoperability as a function of IEEE754, and added an IEEE754 reference. 添加了关于数字互操作性作为IEEE754函数的描述,并添加了IEEE754参考。
-
Added language about interoperability and Unicode characters and about string comparisons. To do this, turned the old "Encoding" section into a "String and Character Issues" section, with three subsections: "Character Encoding", "Unicode Characters", and "String Comparison". 添加了关于互操作性和Unicode字符以及字符串比较的描述。为此,将旧的"编码"一节转变为"字符串和字符问题"一节,包含三个子节:"字符编码"、"Unicode字符"和"字符串比较"。
-
Changed guidance in the "Parsers" section to point out that implementations may set limits on the range "and precision" of numbers. 更改了"解析器"一节中的指导,指出实现可以对数字的范围"和精度"设置限制。
-
Updated and tidied the "IANA Considerations" section. 更新并整理了"IANA考虑"一节。
-
Made a real "Security Considerations" section and lifted the text out of the previous "IANA Considerations" section. 创建了真正的"安全考虑"一节,并从之前的"IANA考虑"一节中提取了文本。
-
Applied erratum #3607 from RFC 4627 by removing the security consideration that begins "A JSON text can be safely passed" and the JavaScript code that went with that consideration. 通过删除以"A JSON text can be safely passed"开头的安全考虑以及与该考虑相关的JavaScript代码,应用了RFC 4627的勘误#3607。
-
Added a note to the "Security Considerations" section pointing out the risks of using the "eval()" function in JavaScript or any other language in which JSON texts conform to that language's syntax. 在"安全考虑"一节中添加了一条注释,指出在JavaScript或JSON文本符合该语言语法的任何其他语言中使用"eval()"函数的风险。
-
Added a note to the "IANA Considerations" clarifying the absence of a "charset" parameter for the application/json media type. 在"IANA考虑"中添加了一条注释,澄清application/json媒体类型没有"charset"参数。
-
Changed "100" to 100 and added a boolean field, both in the first example. 在第一个示例中将"100"更改为100并添加了一个布尔字段。
-
Added examples of JSON texts with simple values, neither objects nor arrays. 添加了具有简单值(既不是对象也不是数组)的JSON文本示例。
-
Added a "Contributors" section crediting Douglas Crockford. 添加了"贡献者"一节,致谢Douglas Crockford。
-
Added a reference to RFC 4627. 添加了对RFC 4627的参考。
-
Moved the ECMAScript reference from Normative to Informative and updated it to reference ECMAScript 5.1, and added a reference to ECMA 404. 将ECMAScript参考从规范性移至参考性,并更新为引用ECMAScript 5.1,并添加了对ECMA 404的参考。