public class JsonHelper extends Object
| Constructor and Description |
|---|
JsonHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
getMap(org.json.JSONObject object,
String key) |
static boolean |
isEmptyObject(org.json.JSONObject object) |
static Object |
toJSON(Object object) |
static List |
toList(org.json.JSONArray array) |
static Map<String,Object> |
toMap(org.json.JSONObject object) |
public static Object toJSON(Object object) throws org.json.JSONException
org.json.JSONExceptionpublic static boolean isEmptyObject(org.json.JSONObject object)
public static Map<String,Object> getMap(org.json.JSONObject object, String key) throws org.json.JSONException
org.json.JSONExceptionpublic static Map<String,Object> toMap(org.json.JSONObject object) throws org.json.JSONException
org.json.JSONExceptionpublic static List toList(org.json.JSONArray array) throws org.json.JSONException
org.json.JSONException