首页 > Web开发 > 详细

JSON数据格式

时间:2014-06-02 13:29:26      阅读:363      评论:0      收藏:0      [点我收藏+]

http://blog.csdn.net/ninibinbin/article/details/3445936

bubuko.com,布布扣
[
    {
        "Id": "A",
        "Name": "A",
        "Nodes": {
            "Id": "A01",
            "Name": "A01",
            "Nodes": {
                "Id": "A011",
                "Name": "A011",
                "Nodes": [
                    {
                        "Id": "A0111",
                        "Name": "A0111"
                    },
                    {
                        "Id": "A0111",
                        "Name": "A0112"
                    }
                ]
            }
        }
    },
    {
        "Id": "B",
        "Name": "B",
        "Nodes": {
            "Id": "B01",
            "Name": "B01",
            "Nodes": {
                "Id": "B011",
                "Name": "B011",
                "Nodes": {
                    "Id": "B0111",
                    "Name": "B0111"
                }
            }
        }
    }
]
bubuko.com,布布扣

 

bubuko.com,布布扣

 

注:两个对象并排对象需要使用[]

如:

        "Nodes": [
                    {
                        "Id": "A0111",
                        "Name": "A0111"
                    },
                    {
                        "Id": "A0111",
                        "Name": "A0112"
                    }
                ]

 

JSON数据格式,布布扣,bubuko.com

JSON数据格式

原文:http://www.cnblogs.com/pnljs/p/3763120.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!