Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web サービスは次のような JSON 文字列を返します
"[{\"Id\":\"1\",\"Name\":\"Peter\"}]"
jQueryでは、$.parseJSONそれを有効なJSON文字列に変換するために使用できます
$.parseJSON
[{"Id":"1","Name":"Peter"}]
Androidで同様の方法はありますか?
Android には、json を解析するための org.json パッケージが付属していますが、Java オブジェクトへの変換を容易にするライブラリが他にもあります。
Android SDKが付属しています:
その他のダウンロード可能なパッケージ: