-2
如何使用Gson解析此Json並顯示Placetype _Name和Place詳細信息?如何使用Gson解析此Json
我有這個JSON,需要幫助解析和顯示Placetype _Name和地方的詳細信息。
{
"PlacesList": {
"PlaceType": [
{
"-Name": "Airport",
"Places": {
"Place": [
{
"name": "Juhu Aerodrome",
"latitude": "19.09778",
"longitude": "72.83083",
"description": "Juhu Aerodrome is an airport that serves the metropolitan"
},
{
"name": "Chhatrapati Shivaji International Airport",
"latitude": "19.09353",
"longitude": "72.85489",
"description": "Chhatrapati Shivaji International Airport "
}
]
}
},
{
"-Name": "Mall",
"Places": {
"Place": [
{
"name": "Infinity",
"latitude": "19.14030",
"longitude": "72.83180",
"description": "This Mall is one of the best places for all types of brand"
},
{
"name": "Heera Panna",
"latitude": "18.98283",
"longitude": "72.80897",
"description": "The Heera Panna Shopping Center is one of the most popular"
}
]
}
}
]
}
}