Is JSON a language, if not how would it be classified?

后端 未结 4 2462
攒了一身酷
攒了一身酷 2021-02-20 02:52

Considering JSON (JavaScript Object Notation), is JSON itself a language, or is it only defined in context of another language? By language, I

4条回答
  •  梦毁少年i
    2021-02-20 03:13

    JSON is a data format. It could be classified as a language, but not a programming language.

    Its relationship to JavaScript is that it shares its syntax (more or less) with a subset of JavaScript literals. The JSON specification defines it completely; it doesn't depend on references to the JavaScript specification.

提交回复
热议问题