Я пытаюсь разобрать результат JSON, полученный из URL-адреса в приложении для Android...
Я пробовал несколько примеров в Интернете, но не могу заставить его работать. Данные JSON выглядят следующим образом:
[
{
"city_id": "1",
"city_name": "Noida"
},
{
"city_id": "2",
"city_name": "Delhi"
},
{
"city_id": "3",
"city_name": "Gaziyabad"
},
{
"city_id": "4",
"city_name": "Gurgaon"
},
{
"city_id": "5",
"city_name": "Gr. Noida"
}
]
Какой самый простой способ получить URL-адрес и проанализировать данные JSON, покажите его в списке