public class BundleJSONConverter
extends java.lang.Object
A helper class that can round trip between JSON and Bundle objects that contains the types: Boolean, Integer, Long, Double, String If other types are found, an IllegalArgumentException is thrown.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BundleJSONConverter.Setter |
| Constructor and Description |
|---|
BundleJSONConverter() |
| Modifier and Type | Method and Description |
|---|---|
static android.os.Bundle |
convertToBundle(org.json.JSONObject jsonObject) |
static org.json.JSONObject |
convertToJSON(android.os.Bundle bundle) |
public static org.json.JSONObject convertToJSON(android.os.Bundle bundle)
throws org.json.JSONException
org.json.JSONExceptionpublic static android.os.Bundle convertToBundle(org.json.JSONObject jsonObject)
throws org.json.JSONException
org.json.JSONException