标准摘要
[中文适用范围]: JSON 是一种轻量级、基于文本、与编程语言无关的语法,用于定义数据交换格式。它源自 ECMAScript 编程语言,但与编程语言无关。JSON 定义了用于结构化数据便携表示的一组小型结构化规则。本规范的唯一目标是定义有效 JSON 文本的语法。其意图不是提供符合该语法的文本的任何语义或解释。它也有意不定义有效 JSON 文本如何内部化为编程语言的内部数据结构。可以应用于 JSON 语法的语义有很多,编程语言处理或映射 JSON 文本的方式也有很多。使用 JSON 进行有意义的信息交换需要相关各方就所应用的具体语义达成一致。定义 JSON 的具体语义解释可能是其他规范的课题。同样,JSON 的语言映射也可以独立指定。例如,ECMA-262 定义了有效 JSON 文本与 ECMAScript 运行时数据结构之间的映射。 [外文原描述]: JSON is a lightweight, text-based, language-independent syntax for defining data interchange formats. It was derived from the ECMAScript programming language, but is programming language independent. JSON defines a small set of structuring rules for the portable representation of structured data. The goal of ISO/IEC 21778:2017 is only to define the syntax of valid JSON texts. Its intent is not to provide any semantics or interpretation of text conforming to that syntax. It also intentionally does not define how a valid JSON text might be internalized into the data structures of a programming language. There are many possible semantics that could be applied to the JSON syntax and many ways that a JSON text can be processed or mapped by a programming language. Meaningful interchange of information using JSON requires agreement among the involved parties on the specific semantics to be applied. Defining specific semantic interpretations of JSON is potentially a topic for other specifications. Similarly, language mappings of JSON can also be independently specified. For example, ECMA-262 defines mappings between valid JSON texts and ECMAScript's runtime data structures.
英文名称Information technology - The JSON data interchange syntax