我有以下JSON對象轉換JSON對象列出<String>
{"LIST":{"row_12":{"id":"11","name":"blah blah"},
"row_13":{"id":"8","name":"blah blah"},
"row_10":{"id":"3","name":"blah blah"},
"row_11":{"id":"14","name":"blah blah"},
"row_2":{"id":"27","name":"blah blah"},
"row_1":{"id":"2","name":"blah blah"},
"row_4":{"id":"23","name":"blah blah"},
"row_14":{"id":"43","name":"blah blah"},
"row_15":{"id":"35","name":"blah blah"},
"row_3":{"id":"36","name":"blah blah"},
"row_5":{"id":"30","name":"blah blah"},
"row_6":{"id":"34","name":"blah blah"},
"row_7":{"id":"17","name":"blah blah"},
"row_8":{"id":"37","name":"blah blah"},
"row_9":{"id":"1","name":"blah blah"}}}
我想把它轉換到列表我試了碼從這些問題的答案都與我相似的問題,但他們didn`t工作,我認爲這是因爲行中的每個對象都有它的名字。我如何將對象轉換爲List。
顯示您嘗試過什麼。另請參閱http://stackoverflow.com/questions/2591098/how-to-parse-json-in-java – Nabin
基本上你需要什麼值在你的名單?無論你需要身份證和姓名還是隻有名單 –