我想解析一個JSON響應。我得到JSON響應象下面這樣:如何在Android中解析複雜的json響應
"libraryLastModified" : "2012-10-10 03:57:26",
"playlists" : { "10063" : { "id" : "10063",
"name" : "Favorites",
"songs" : [ "10006134",
"10006053",
"10006274",
"10006167",
]
},
"10157" : { "id" : "10157",
"name" : "80s",
"songs" : [ "10006694",
"10006695",
"10006697",
"10006699",
"10006698",
]
}
我如何訪問ID & name值?
這工作,但如何使其迭代,因爲我有多個播放列表10063,10064 .... – user1737884
檢查我的更新答案 – Maragues
我如何獲得鍵值? – user1737884