public final class JSONUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Object> |
fromJSON(org.json.JSONArray json) |
static Map<String,Object> |
fromJSON(org.json.JSONObject json) |
static Date |
toDate(String json) |
static org.json.JSONArray |
toJSON(List<?> list) |
static org.json.JSONObject |
toJSON(Map<?,?> map) |
static Object |
toJSON(Object val) |
static String |
toJSONString(Date date) |
@NonNull public static org.json.JSONObject toJSON(@NonNull Map<?,?> map) throws org.json.JSONException
org.json.JSONException
@NonNull public static org.json.JSONArray toJSON(@NonNull List<?> list) throws org.json.JSONException
org.json.JSONException
@Nullable public static Object toJSON(@Nullable Object val) throws org.json.JSONException
org.json.JSONException
@NonNull public static Map<String,Object> fromJSON(@NonNull org.json.JSONObject json) throws org.json.JSONException
org.json.JSONException
@NonNull public static List<Object> fromJSON(@NonNull org.json.JSONArray json) throws org.json.JSONException
org.json.JSONException