public final class JsonParser extends Object
JSONObject
from a JsonReader
.Modifier and Type | Method and Description |
---|---|
static JSONObject |
parse(JsonReader reader)
Consumes and parses exactly one JSON object from the
JsonReader . |
static List<String> |
parseArray(JsonReader reader)
Parses one string array from the
JsonReader . |
public static JSONObject parse(JsonReader reader) throws IOException, JSONException
JsonReader
.
The object's fields can only be objects, strings or arrays of strings.IOException
JSONException
public static List<String> parseArray(JsonReader reader) throws IOException
JsonReader
.IOException