public class JSONUtils extends Object
| Constructor and Description |
|---|
JSONUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(JSONArray json) |
static boolean |
isEmpty(JSONObject json) |
static String |
optString(JSONArray json,
int index) |
static String |
optString(JSONArray json,
int index,
String fallback) |
static String |
optString(JSONObject json,
String name) |
static String |
optString(JSONObject json,
String name,
String fallback) |
public static boolean isEmpty(JSONObject json)
public static boolean isEmpty(JSONArray json)
public static String optString(JSONObject json, String name)
public static String optString(JSONObject json, String name, String fallback)