私は自分の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": 1460 を持つ jasonarray のアサーションを入れたいと思います。たとえば、lm の値などのパラメータです。安心して同じことができる方法。「援助」を持つjsonarrayのインデックス位置も知りたい:1460.助けてください!!