public class JsonReader extends Object implements ParseContext, ReadContext
| Constructor and Description |
|---|
JsonReader() |
JsonReader(Configuration configuration) |
JsonReader(JsonProvider jsonProvider) |
| Modifier and Type | Method and Description |
|---|---|
Object |
json()
Returns the JSON model that this context is reading
|
ReadContext |
parse(File json) |
ReadContext |
parse(InputStream json) |
ReadContext |
parse(Object json) |
ReadContext |
parse(String json) |
ReadContext |
parse(URL json) |
<T> T |
read(JsonPath path)
Reads the given path from this context
|
<T> T |
read(String path,
Filter... filters)
Reads the given path from this context
|
public JsonReader()
public JsonReader(JsonProvider jsonProvider)
public JsonReader(Configuration configuration)
public ReadContext parse(Object json)
parse in interface ParseContextpublic ReadContext parse(String json)
parse in interface ParseContextpublic ReadContext parse(InputStream json)
parse in interface ParseContextpublic ReadContext parse(File json) throws IOException
parse in interface ParseContextIOExceptionpublic ReadContext parse(URL json) throws IOException
parse in interface ParseContextIOExceptionpublic Object json()
ReadContextjson in interface ReadContextpublic <T> T read(String path, Filter... filters)
ReadContextread in interface ReadContextpath - path to readfilters - filterspublic <T> T read(JsonPath path)
ReadContextread in interface ReadContextpath - path to applyCopyright © 2011–2013. All rights reserved.