public class SimpleJsonParser
extends java.lang.Object
| Constructor and Description |
|---|
SimpleJsonParser(java.io.Reader jsonReader)
Create a new instance from a Json Reader.
|
SimpleJsonParser(java.lang.String jsonSource)
Create a new instance from a Json String.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
JsonValueToString(JsonValue jsonValue)
Utility: Convert a Json value of any datatype to a string.
|
void |
parse(SimpleJsonParserCallbackInterface callbackInterface)
Parse recursively a JSON root object (JSON Object or Array) and call for each simple JSON value the callback interface
|
public SimpleJsonParser(java.lang.String jsonSource)
jsonSource - a String containing the Json datapublic SimpleJsonParser(java.io.Reader jsonReader)
throws java.io.IOException
jsonReader - a Reader for the Json datajava.io.IOException - if somewhat fails.public void parse(SimpleJsonParserCallbackInterface callbackInterface)
callbackInterface - the callback interfacejava.lang.IllegalArgumentException - if the root of the JSON data is not an Object or Arraypublic static java.lang.String JsonValueToString(JsonValue jsonValue)
jsonValue - the Json value