public final class JsonUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Object> |
toList(org.json.JSONArray array)
Converts a JSONObject to a list.
|
static java.util.Map<java.lang.String,java.lang.Object> |
toMap(org.json.JSONObject object)
Converts a JSONObject to a map.
|
public static java.util.List<java.lang.Object> toList(org.json.JSONArray array)
array
- the JSONArray to convert.public static java.util.Map<java.lang.String,java.lang.Object> toMap(org.json.JSONObject object)
object
- the JSONObject to convert.