JSON Feed层次结构问题

时间:2011-03-31 16:07:53

标签: javascript json lotus lotus-domino

我们的开发人员从Lotus Domino View创建了一个JSON提要。 Feed会将接入点自行车路径一起列出。我想在接入点下包含路径,但在馈送中两者都显示在同一级别。

{"@position": "6",
"@noteid": "80008088",
"@children": "5",
"@descendants": "5",
"@siblings": "313",
"entrydata": [
    {
    "@columnnumber": "0",
    "@name": "OSGridRef",
    "text": {
    "0": ""
    }
    },
    {
    "@columnnumber": "1",
    "@name": "$2",
    "text": {
    "0": ""
    }
    },
    {
    "@columnnumber": "2",
    "@name": "$11",
    "text": {
    "0": ""
    }
    },
    {
    "@columnnumber": "3",
    "@name": "CyclingSeverity",
    "text": {
    "0": ""
    }
    }
]
},
{
"@position": "6.1",
"@unid": "4CAE248EE730E3DD80256C8400400B1B",
"@noteid": "372A",
"@siblings": "5",
"entrydata": [
    {
    "@columnnumber": "0",
    "@name": "OSGridRef",
    "text": {
    "0": "SS820 950"
    }
    },
    {
    "@columnnumber": "1",
    "@name": "$2",
    "text": {
    "0": "Afan Forest Park Visitor Centre"
    }
    },
    {
    "@columnnumber": "2",
    "@name": "$11",
    "text": {
    "0": "/4CAE248EE730E3DD80256C8400400B1B"
    }
    },
    {
    "@columnnumber": "3",
    "@name": "CyclingSeverity",
    "text": {
    "0": ""
    }
    }
]
}

有没有办法让我走这条路(全部从@position x.2开始)并使用javascript将它们包含在接入点(@position x.1)下?

0 个答案:

没有答案