0
可能重複:
Android - de-facto implementation of REST/JSON client?JSON對象在Java中讀
如何用Java讀取JSON對象的值。 我使用一個URl發送Http post請求。之後,獲得結果作爲JSON對象。我需要閱讀這個價值。任何人都可以提出意見。
可能重複:
Android - de-facto implementation of REST/JSON client?JSON對象在Java中讀
如何用Java讀取JSON對象的值。 我使用一個URl發送Http post請求。之後,獲得結果作爲JSON對象。我需要閱讀這個價值。任何人都可以提出意見。
我會建議使用庫來deserialise的JSON你,這裏是我用一對夫婦:
[StringTree](http://www.stringtree.org/stringtree-json.html)也很好 –
檢查:[JSON解析示例] (http://stackoverflow.com/search?q=JSON+Parsing+example) –
否則在此發佈響應代碼。 –