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

后端 未结 4 2463
攒了一身酷
攒了一身酷 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条回答
  •  我在风中等你
    2021-02-20 03:36

    I would classify it as a format of structured data, not a language. This Wikipedia article about Turing completeness does a pretty good job summing it up:

    The notion of Turing-completeness does not apply to languages such as XML, HTML, JSON, YAML and S-expressions, because they are typically used to represent structured data, not describe computation. These are sometimes referred to as markup languages, or more properly as "container languages" or "data description languages".

提交回复
热议问题