public class GenericJsonParser extends Object
Constructor and Description |
---|
GenericJsonParser(InputStream stream)
Constructs a GenericJsonParser from an InputStream.
|
GenericJsonParser(Reader reader)
Constructs a GenericJsonParser from a Reader.
|
GenericJsonParser(String text)
Constructs a GenericJsonParser from literal JSON text.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getJsonEventStringList()
Gets the list of JSON event Strings encountered during parse.
|
JsonArray |
getResultArray()
Gets the parsed result array.
|
JsonObject |
getResultObject()
Gets the parsed result object.
|
void |
parse()
Perform the parse for this instance.
|
public GenericJsonParser(String text)
text
- the JSON text.public GenericJsonParser(Reader reader)
reader
- the reader containing the JSONpublic GenericJsonParser(InputStream stream)
stream
- the stream containing the JSONpublic List<String> getJsonEventStringList()
public JsonObject getResultObject()
public JsonArray getResultArray()
public void parse()
text
- the JSON text.Copyright © 2023. All rights reserved.