使用Jquery迭代JSON

时间:2015-07-14 08:30:51

标签: jquery

我想迭代并返回一个数组到Jquery自动完成。你能建议我如何将数组中的结果术语Raj和Rajesh返回到自动完成功能。

{
    "responseHeader": {
        "status": 0,
        "QTime": 21
    },
    "command": "build",
    "suggest": {
        "mySuggester": {
            "R": {
                "numFound": 2,
                "suggestions": [
                    {
                        "term": "Raj",
                        "weight": 0,
                        "payload": ""
                    },
                    {
                        "term": "Rajesh",
                        "weight": 0,
                        "payload": ""
                    }
                ]
            }
        }
    }
}

0 个答案:

没有答案