public final class JSONUtils
extends java.lang.Object
修飾子とタイプ | メソッドと説明 |
---|---|
static org.json.JSONObject |
convertBundleToJSON(android.os.Bundle bundle)
BundleをJSONObjectに変換する.
|
static void |
convertBundleToJSON(org.json.JSONObject root,
android.os.Bundle b)
BundleからJSONObjectに変換する.
|
public static org.json.JSONObject convertBundleToJSON(android.os.Bundle bundle) throws org.json.JSONException
bundle
- 変換するBundleorg.json.JSONException
- JSONへの変換に失敗した場合に発生public static void convertBundleToJSON(org.json.JSONObject root, android.os.Bundle b) throws org.json.JSONException
root
- JSONObjectに変換したデータを格納するオブジェクトb
- 変換するBundleorg.json.JSONException
- JSONへの変換に失敗した場合に発生