Package | Description |
---|---|
com.jayway.jsonpath | |
com.jayway.jsonpath.internal | |
com.jayway.jsonpath.internal.path | |
com.jayway.jsonpath.spi.mapper |
Modifier and Type | Method and Description |
---|---|
Configuration |
Configuration.addEvaluationListeners(EvaluationListener... evaluationListener)
Creates a new Configuration by the provided evaluation listeners to the current listeners
|
Configuration |
Configuration.addOptions(Option... options)
Creates a new configuration by adding the new options to the options used in this configuration.
|
Configuration |
Configuration.ConfigurationBuilder.build() |
Configuration |
ReadContext.configuration()
Returns the configuration used for reading
|
Configuration |
Predicate.PredicateContext.configuration()
Configuration to use when evaluating
|
Configuration |
WriteContext.configuration()
Returns the configuration used for reading
|
static Configuration |
Configuration.defaultConfiguration()
Creates a new configuration based on default values
|
Configuration |
Configuration.jsonProvider(JsonProvider newJsonProvider)
Creates a new Configuration based on the given
JsonProvider |
Configuration |
Configuration.mappingProvider(MappingProvider newMappingProvider)
Creates a new Configuration based on the given
MappingProvider |
Configuration |
Configuration.setEvaluationListeners(EvaluationListener... evaluationListener)
Creates a new Configuration with the provided evaluation listeners
|
Configuration |
Configuration.setOptions(Option... options)
Creates a new configuration with the provided options.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
JsonPath.add(Object jsonObject,
Object value,
Configuration configuration)
Adds a new value to the Array this path points to in the provided jsonObject
|
<T> T |
JsonPath.delete(Object jsonObject,
Configuration configuration)
Deletes the object this path points to in the provided jsonObject
|
Object |
MapFunction.map(Object currentValue,
Configuration configuration) |
<T> T |
JsonPath.map(Object jsonObject,
MapFunction mapFunction,
Configuration configuration)
Replaces the value on the given path with the result of the
MapFunction . |
static DocumentContext |
JsonPath.parse(File json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(InputStream json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(Object json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(String json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(URL json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
<T> T |
JsonPath.put(Object jsonObject,
String key,
Object value,
Configuration configuration)
Adds or updates the Object this path points to in the provided jsonObject with a key with a value
|
<T> T |
JsonPath.read(File jsonFile,
Configuration configuration)
Applies this JsonPath to the provided json file
|
<T> T |
JsonPath.read(InputStream jsonInputStream,
Configuration configuration)
Applies this JsonPath to the provided json input stream
|
<T> T |
JsonPath.read(InputStream jsonInputStream,
String charset,
Configuration configuration)
Applies this JsonPath to the provided json input stream
|
<T> T |
JsonPath.read(Object jsonObject,
Configuration configuration)
Applies this JsonPath to the provided json document.
|
<T> T |
JsonPath.read(String json,
Configuration configuration)
Applies this JsonPath to the provided json string
|
<T> T |
JsonPath.renameKey(Object jsonObject,
String oldKeyName,
String newKeyName,
Configuration configuration) |
<T> T |
JsonPath.set(Object jsonObject,
Object newVal,
Configuration configuration)
Set the value this path points to in the provided jsonObject
|
static ParseContext |
JsonPath.using(Configuration configuration)
Creates a
ParseContext that can be used to parse a given JSON input. |
Modifier and Type | Method and Description |
---|---|
Configuration |
EvaluationContext.configuration() |
Configuration |
JsonContext.configuration() |
Modifier and Type | Method and Description |
---|---|
abstract void |
PathRef.add(Object newVal,
Configuration configuration) |
abstract void |
PathRef.convert(MapFunction mapFunction,
Configuration configuration) |
abstract void |
PathRef.delete(Configuration configuration) |
EvaluationContext |
Path.evaluate(Object document,
Object rootDocument,
Configuration configuration)
Evaluates this path
|
EvaluationContext |
Path.evaluate(Object document,
Object rootDocument,
Configuration configuration,
boolean forUpdate)
Evaluates this path
|
abstract void |
PathRef.put(String key,
Object newVal,
Configuration configuration) |
protected void |
PathRef.renameInMap(Object targetMap,
String oldKeyName,
String newKeyName,
Configuration configuration) |
abstract void |
PathRef.renameKey(String oldKey,
String newKeyName,
Configuration configuration) |
abstract void |
PathRef.set(Object newVal,
Configuration configuration) |
Constructor and Description |
---|
JsonContext(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Configuration |
EvaluationContextImpl.configuration() |
Configuration |
PredicateContextImpl.configuration() |
Modifier and Type | Method and Description |
---|---|
boolean |
PredicatePathToken.accept(Object obj,
Object root,
Configuration configuration,
EvaluationContextImpl evaluationContext) |
EvaluationContext |
CompiledPath.evaluate(Object document,
Object rootDocument,
Configuration configuration) |
EvaluationContext |
CompiledPath.evaluate(Object document,
Object rootDocument,
Configuration configuration,
boolean forUpdate) |
Constructor and Description |
---|
EvaluationContextImpl(Path path,
Object rootDocument,
Configuration configuration,
boolean forUpdate) |
PredicateContextImpl(Object contextDocument,
Object rootDocument,
Configuration configuration,
HashMap<Path,Object> documentPathCache) |
Modifier and Type | Method and Description |
---|---|
<T> T |
JsonSmartMappingProvider.map(Object source,
Class<T> targetType,
Configuration configuration) |
<T> T |
MappingProvider.map(Object source,
Class<T> targetType,
Configuration configuration) |
<T> T |
GsonMappingProvider.map(Object source,
Class<T> targetType,
Configuration configuration) |
<T> T |
JacksonMappingProvider.map(Object source,
Class<T> targetType,
Configuration configuration) |
<T> T |
JsonSmartMappingProvider.map(Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
MappingProvider.map(Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
GsonMappingProvider.map(Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
JacksonMappingProvider.map(Object source,
TypeRef<T> targetType,
Configuration configuration) |
Copyright © 2019. All rights reserved.