JSON數據格式

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

[
    {
        "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"
                }
            }
        }
    }
]

 

 

注:兩個對象並排對象須要使用[].net

如:code

        "Nodes": [
                    {
                        "Id": "A0111",
                        "Name": "A0111"
                    },
                    {
                        "Id": "A0111",
                        "Name": "A0112"
                    }
                ]
相關文章
相關標籤/搜索