Package de.xima.fc.fastjson
Class FastJsonProvider
- java.lang.Object
-
- com.jayway.jsonpath.spi.json.AbstractJsonProvider
-
- de.xima.fc.fastjson.FastJsonProvider
-
- All Implemented Interfaces:
com.jayway.jsonpath.spi.json.JsonProvider
- Direct Known Subclasses:
ReflectionFastJsonProvider
@Immutable public class FastJsonProvider extends com.jayway.jsonpath.spi.json.AbstractJsonProvider
AJsonProvider
forJSON
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static com.jayway.jsonpath.spi.json.JsonProvider
INSTANCE
An immutable instance of this provider.
-
Constructor Summary
Constructors Constructor Description FastJsonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
createArray()
Object
createMap()
Object
parse(InputStream jsonStream, String charset)
Object
parse(String json)
String
toJson(Object obj)
-
Methods inherited from class com.jayway.jsonpath.spi.json.AbstractJsonProvider
getArrayIndex, getArrayIndex, getMapValue, getPropertyKeys, isArray, isMap, length, removeProperty, setArrayIndex, setProperty, toIterable, unwrap
-
-
-
-
Method Detail
-
createArray
public Object createArray()
-
createMap
public Object createMap()
-
parse
public Object parse(InputStream jsonStream, String charset) throws com.jayway.jsonpath.InvalidJsonException
- Throws:
com.jayway.jsonpath.InvalidJsonException
-
parse
public Object parse(String json) throws com.jayway.jsonpath.InvalidJsonException
- Throws:
com.jayway.jsonpath.InvalidJsonException
-
-