我正在起诉让我的 api 自动化,这是我的 jsonResponse:-
{
"al": [{
"aid": 1464,
"_r": "Bus Stand,",
"_l": "spaze it park2,",
"_c": ",",
"_s": "Haryana,",
"co": "India,",
"pc": "122001",
"fa": "Sona Road, spaze it park, Gurgaon, Haryana,",
"fn": "225,",
"lm": "omax mall",
"pa": null,
"at": 1
},
{
"aid": 1462,
"_r": "Bus Stand,",
"_l": "spaze it park2,",
"_c": "Gurgaon,",
"_s": "Haryana,",
"co": "India,",
"pc": "122001",
"fa": "Sona Road, spaze it park, Gurgaon, Haryana,",
"fn": "225,",
"lm": "omax mall",
"pa": null,
"at": 1
},
{
"aid": 1461,
"_r": null,
"_l": null,
"_c": "Gurgaon1",
"_s": "",
"co": null,
"pc": "122003",
"fa": "Gurgaon, HRyana, 122003",
"fn": "",
"lm": "",
"pa": null,
"at": -1
},
{
"aid": 1460,
"_r": "Bus Stand,",
"_l": "spaze it park2,",
"_c": "Gurgaon,",
"_s": "Haryana,",
"co": "India,",
"pc": "122001",
"fa": "Sona Road, spaze it park, Gurgaon, Haryana,",
"fn": "225,",
"lm": "omax mall",
"pa": null,
"at": 2
}
]
}
现在我想为具有“aid”的 jasonarray 断言:1460,比如 lm 的值是多少,at 等参数。我们如何才能放心地做同样的事情。也想知道jsonarray的索引位置有“aid”:1460。请帮帮我!!