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 ParseContext
public ReadContext parse(String json)
parse
in interface ParseContext
public ReadContext parse(InputStream json)
parse
in interface ParseContext
public ReadContext parse(File json) throws IOException
parse
in interface ParseContext
IOException
public ReadContext parse(URL json) throws IOException
parse
in interface ParseContext
IOException
public Object json()
ReadContext
json
in interface ReadContext
public <T> T read(String path, Filter... filters)
ReadContext
read
in interface ReadContext
path
- path to readfilters
- filterspublic <T> T read(JsonPath path)
ReadContext
read
in interface ReadContext
path
- path to applyCopyright © 2011–2014. All rights reserved.