gpt4 book ai didi

json - 不同类型的 JSON

转载 作者:行者123 更新时间:2023-12-04 04:42:25 25 4
gpt4 key购买 nike

我正在看这个问题

What is JSON and why would I use it?

我对 JSON 结构的不同名称感到困惑

  • 什么是简单的 JSON ?
  • JSON 数组?
  • JSON 数组数组?
  • 其他可能的任何

  • 示例 1:这个叫什么
    {
    "MIT_COLLEGE": [
    {
    "_id": 1,
    "StudentName": "Sam",
    "Student_Age": "24",
    "Student_phone": "8725436232",
    "Student_sex": "Male",
    },
    {
    "_id": 2,
    "StudentName": "kira",
    "Student_Age": "22",
    "Student_phone": "8725136232",
    "Student_sex": "Female",
    }
    ],
    "CAMBRIDGE_COLLEGE": [
    {
    "_id": 1,
    "StudentName": "Paul",
    "Student_Age": "26",
    "Student_phone": "87333336232",
    "Student_sex": "Male",
    },
    {
    "_id": 2,
    "StudentName": "michael",
    "Student_Age": "22",
    "Student_phone": "872115436232",
    "Student_sex": "Male",
    }
    ]
    }

    示例 2:: 这个叫什么
                                 {
    "_id": 2,
    "StudentName": "michael",
    "Student_Age": "22",
    "Student_phone": "872115436232",
    "Student_sex": "Male",
    }

    JSON 中其他可能的结构以及它的名称是什么?

    谢谢...希望我清楚

    最佳答案

    JSON 就是 JSON。

    道格拉斯·克罗克福德说得最好:

    http://www.json.org/fatfree.html

    JSON (or JavaScript Object Notation) is a programming language model data interchange format. It is minimal, textual, and a subset of JavaScript. Specifically, it is a subset of ECMA-262 (The ECMAScript programming Language Standard, Third Edition, December 1999). It is lightweight and very easy to parse.

    JSON is not a document format. It is not a markup language. It is not even a general serialization format in that it does not have a direct representation for cyclical structures, although it can support a meta representation that does. ...

    With no other effort on my part, JSON has been widely adopted by people who found that it made it a lot easier to produce distributed applications and services. The original page has been translated into Chinese, French, German, Italian, Japanese, Korean, and Spanish. JSON has been formalized in RFC 4627. The MIME Media Type is application/json.

    The types represented in JSON are strings, numbers, booleans, object, arrays, and null.



    它实际上只是来自 Javascript 编程语言的一些特定结构。这些构造(如上所述)仅如下:
  • 字符串
  • 号码
  • bool 值
  • 对象
  • 数组

  • 您上面引用的两个示例都只是“JSON”。

    您可以在此处了解更多信息:
  • www.json.org
  • http://www.ibm.com/developerworks/library/wa-ajaxintro10/
  • http://www.webmonkey.com/2010/02/get_started_with_json/
  • 关于json - 不同类型的 JSON,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18692060/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com