public class JsonParser extends Object
| Constructor and Description |
|---|
JsonParser(JsonLexer lexer)
Constructs a new JSON parser
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
parseArray()
Parses an array
|
Map<String,Object> |
parseObject()
Parses an object into a map
|
public JsonParser(JsonLexer lexer)
lexer - a JSON lexer to read frompublic Map<String,Object> parseObject() throws IOException
IOException - if the input stream could not be read or if
the input stream contained an unexpected tokenpublic List<Object> parseArray() throws IOException
IOException - if the input stream could not be read or if
the input stream contained an unexpected token