我正在開發一個應用程序,我想要獲取一些數據,這是在JSON格式,但我不知道如何獲取。請指導我。如何在android中獲取json對象?
JSON數據: -
{
"title":"title",
"description":"description",
"icon":{
"url":"<image-url>",
"aspectRatio":1,
"height":75,
"width":75
},
"screenshots":{
"url":"<image-url>",
"aspectRatio":1.91,
"height":627,
"width":1200
},
"landingURL":"LandingUrl",
"cta":"cta",
"rating":"rating"
}
到目前爲止你已經嘗試過什麼? –
可能的重複:http://stackoverflow.com/questions/5566669/how-to-parse-a-json-object-in-android –