public class PlainJavaJsonProvider
extends com.jayway.jsonpath.spi.impl.AbstractJsonProvider
Constructor and Description |
---|
PlainJavaJsonProvider() |
Modifier and Type | Method and Description |
---|---|
Iterable |
createArray() |
Object |
createMap() |
com.jayway.jsonpath.spi.Mode |
getMode() |
Object |
getProperty(Object obj,
Object key) |
Collection<String> |
getPropertyKeys(Object obj) |
boolean |
isArray(Object obj) |
boolean |
isContainer(Object obj) |
boolean |
isMap(Object obj) |
int |
length(Object obj) |
Object |
parse(InputStream jsonStream) |
Object |
parse(Reader jsonReader) |
Object |
parse(String json) |
void |
setProperty(Object obj,
Object key,
Object value) |
void |
setValueToWrite(Object valueToWrite) |
Iterable<Object> |
toIterable(Object obj) |
String |
toJson(Object obj) |
public void setValueToWrite(Object valueToWrite)
public com.jayway.jsonpath.spi.Mode getMode()
public Object parse(String json) throws com.jayway.jsonpath.InvalidJsonException
com.jayway.jsonpath.InvalidJsonException
public Object parse(Reader jsonReader) throws com.jayway.jsonpath.InvalidJsonException
com.jayway.jsonpath.InvalidJsonException
public Object parse(InputStream jsonStream) throws com.jayway.jsonpath.InvalidJsonException
com.jayway.jsonpath.InvalidJsonException
public Object createMap()
public Iterable createArray()
public boolean isArray(Object obj)
isArray
in interface com.jayway.jsonpath.spi.JsonProvider
isArray
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public boolean isContainer(Object obj)
isContainer
in interface com.jayway.jsonpath.spi.JsonProvider
isContainer
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public boolean isMap(Object obj)
isMap
in interface com.jayway.jsonpath.spi.JsonProvider
isMap
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public Object getProperty(Object obj, Object key)
getProperty
in interface com.jayway.jsonpath.spi.JsonProvider
getProperty
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public void setProperty(Object obj, Object key, Object value)
setProperty
in interface com.jayway.jsonpath.spi.JsonProvider
setProperty
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public Collection<String> getPropertyKeys(Object obj)
getPropertyKeys
in interface com.jayway.jsonpath.spi.JsonProvider
getPropertyKeys
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
public int length(Object obj)
length
in interface com.jayway.jsonpath.spi.JsonProvider
length
in class com.jayway.jsonpath.spi.impl.AbstractJsonProvider
Copyright © 2019. All Rights Reserved.