带标题和条目的JSON响应

时间:2014-08-22 07:28:59

标签: javascript jquery json jquery-jtable

我有一个系统可以像这样生成JSON响应。这是一个在表中使用的列表。我从来没有见过这种首先写字段名的方法,然后是另一组中的数据吗?

这种编写JSON数据的方式是否特别之处?

我无法想象如何阅读我的javascript / jQuery中的响应,是否有人有示例或谷歌提示?

(任何人都知道“jtable”是否可以阅读?)

         "WBEMLIST": {
            "header": [
                {
                    "name": "K9LBNR"
                },
                {
                    "name": "K9BEM"
                },
                {
                    "name": "CBRUGER"
                },
                {
                    "name": "CDATO"
                },
                {
                    "name": "CTID"
                },
                {
                    "name": "UBRUGER"
                },
                {
                    "name": "UDATO"
                },
                {
                    "name": "UTID"
                }
            ],
            "entries": [
                [
                    1,
                    "Albert Einstein described\\the \"ork of theorists as making",
                    "WEBUSERFAU",
                    20140620,
                    114036,
                    "",
                    0,
                    0
                ],
                [
                    3,
                    "of reality is incomplete. Thus the concept that Einstein",
                    "WEBUSERFAU",
                    20140620,
                    114036,
                    "",
                    0,
                    0
                ],
              }
编辑:我可以轻松地在javascript中读取我用JSON编写的javascript中的列表,但不是上面的内容!:

{
"Bildlist": [
    {
        "K8LBNR": "1",
        "K8IMAG": "/HB0WKL3Q.PDF",
        "K8TYPE": "D",
        "K8LINKB": "",
        "CBRUGER": "WEBUSER",
        "CDATO": "2014.06.03",
        "CTID": "13.54.55"
    },
    {
        "K8LBNR": "1",
        "K8IMAG": "/HB0WKL3Q.PDF",
        "K8TYPE": "D",
        "K8LINKB": "",
        "CBRUGER": "WEBUSER",
        "CDATO": "2014.06.03",
        "CTID": "13.54.55"
    }
]
}

0 个答案:

没有答案