Ich bin neu in JSON Parsen und ich bin in diesem verschachtelt JSON parsing.Here stecken sind die beigefügten JSON-Daten für eine Stadt nur, die ich aus der URL erhalten:Nested JSON Parsen in Android mit url
{
"CityCode": 142,
"CityName": "Yavatmal",
"State": {
"StateCode": 21,
"StateName": "Maharashtra",
"CountryCode": 1,
"Country": {
"CountryCode": 1,
"CountryName": "India",
"IsdCode": "+91"
}
},
"Country": {
"CountryCode": 1,
"CountryName": "India",
"IsdCode": "+91"
},
"GPlaceId": "ChIJ3U60i8zo0zsR4L7sQeqtd0g",
"Latitude": 20.388794,
"Longitude": 78.120407,
"ActiveStatus": 1
}
Kann mir jemand sagen, wie man diese Art von JSON-Daten so analysiert, dass ich jeden Schlüssel in einem textView anzeigen kann.
Was hast du bisher gemacht? Ich empfehle, eine Bibliothek zu verwenden, z. [GSON] (http://www.javacreed.com/simple-gson-example/). – tommus
Mögliches Duplikat von [JSON in Java parsen] (http://stackoverflow.com/questions/2591098/how-to-parse-json-in-java) –