我在下面給出的是我的json對象如何獲得citydetails,其中city_id = 50?如何根據角度使用類別得到特定的細節2
{
"status": 0,
"message": "success",
"citydetails": [
{
"city_id": "50",
"city_name": "Pune"
},
{
"city_id": "53",
"city_name": "Mumbai"
},
{
"city_id": "50",
"city_name": "Pune"
},
{
"city_id": "52",
"city_name": "Banglore"
},
{
"city_id": "50",
"city_name": "Pune"
}
]
}
您的JSON對象是錯誤的 – NuttLoose
這裏是完整的陣列?你試圖過濾什麼? – Aravind
@ Aravind,@ NuttLoose:我糾正了我的json,現在它是有效的。我想獲取city_id = 50的城市詳細信息。請幫助我 –