以下の内容はhttps://anton0825.hatenablog.com/entry/2014/12/04/000000より取得しました。


AndroidでJSONをparseする

普通はjacksonとか使うんだろうけど、処理するjsonが綺麗に構造化されていないので自分でparseすることにした。 JSONObjectを使うと文字列をparseしてdictionaryのような構造にしてくれる。

try {
    JSONObject responseJSON = new JSONObject(response);
} catch (JSONException e) {
    e.printStackTrace();
}

boolean success = responseJSON.getBoolean("Success");
String message = responseJSON.getString("Message");

参考:




以上の内容はhttps://anton0825.hatenablog.com/entry/2014/12/04/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14