| 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 |
Predicate.PredicateContext.configuration()
Configuration to use when evaluating
|
Configuration |
ReadContext.configuration()
Returns the configuration used for reading
|
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(java.lang.Object jsonObject,
java.lang.Object value,
Configuration configuration)
Adds a new value to the Array this path points to in the provided jsonObject
|
<T> T |
JsonPath.delete(java.lang.Object jsonObject,
Configuration configuration)
Deletes the object this path points to in the provided jsonObject
|
java.lang.Object |
MapFunction.map(java.lang.Object currentValue,
Configuration configuration) |
<T> T |
JsonPath.map(java.lang.Object jsonObject,
MapFunction mapFunction,
Configuration configuration)
Replaces the value on the given path with the result of the
MapFunction. |
static DocumentContext |
JsonPath.parse(java.io.File json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.io.InputStream json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.lang.Object json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.lang.String json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
static DocumentContext |
JsonPath.parse(java.net.URL json,
Configuration configuration)
Parses the given JSON input using the provided
Configuration and
returns a DocumentContext for path evaluation |
<T> T |
JsonPath.put(java.lang.Object jsonObject,
java.lang.String key,
java.lang.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(java.io.File jsonFile,
Configuration configuration)
Applies this JsonPath to the provided json file
|
<T> T |
JsonPath.read(java.io.InputStream jsonInputStream,
Configuration configuration)
Applies this JsonPath to the provided json input stream
|
<T> T |
JsonPath.read(java.io.InputStream jsonInputStream,
java.lang.String charset,
Configuration configuration)
Applies this JsonPath to the provided json input stream
|
<T> T |
JsonPath.read(java.lang.Object jsonObject,
Configuration configuration)
Applies this JsonPath to the provided json document.
|
<T> T |
JsonPath.read(java.lang.String json,
Configuration configuration)
Applies this JsonPath to the provided json string
|
<T> T |
JsonPath.renameKey(java.lang.Object jsonObject,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
private <T> T |
JsonPath.resultByConfiguration(java.lang.Object jsonObject,
Configuration configuration,
EvaluationContext evaluationContext) |
<T> T |
JsonPath.set(java.lang.Object jsonObject,
java.lang.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 | Field and Description |
|---|---|
private Configuration |
JsonContext.configuration |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
EvaluationContext.configuration() |
Configuration |
JsonContext.configuration() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
PathRef.add(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.RootPathRef.add(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.add(java.lang.Object value,
Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.add(java.lang.Object value,
Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.add(java.lang.Object newVal,
Configuration configuration) |
abstract void |
PathRef.convert(MapFunction mapFunction,
Configuration configuration) |
void |
PathRef.RootPathRef.convert(MapFunction mapFunction,
Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.convert(MapFunction mapFunction,
Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.convert(MapFunction mapFunction,
Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.convert(MapFunction mapFunction,
Configuration configuration) |
private <T> T |
JsonContext.convert(java.lang.Object obj,
java.lang.Class<T> targetType,
Configuration configuration) |
private <T> T |
JsonContext.convert(java.lang.Object obj,
TypeRef<T> targetType,
Configuration configuration) |
abstract void |
PathRef.delete(Configuration configuration) |
void |
PathRef.RootPathRef.delete(Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.delete(Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.delete(Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.delete(Configuration configuration) |
EvaluationContext |
Path.evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration)
Evaluates this path
|
EvaluationContext |
Path.evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate)
Evaluates this path
|
abstract void |
PathRef.put(java.lang.String key,
java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.RootPathRef.put(java.lang.String key,
java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.put(java.lang.String key,
java.lang.Object value,
Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.put(java.lang.String key,
java.lang.Object value,
Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.put(java.lang.String key,
java.lang.Object newVal,
Configuration configuration) |
protected void |
PathRef.renameInMap(java.lang.Object targetMap,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
abstract void |
PathRef.renameKey(java.lang.String oldKey,
java.lang.String newKeyName,
Configuration configuration) |
void |
PathRef.RootPathRef.renameKey(java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.renameKey(java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.renameKey(java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.renameKey(java.lang.String oldKeyName,
java.lang.String newKeyName,
Configuration configuration) |
abstract void |
PathRef.set(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.RootPathRef.set(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.ArrayIndexPathRef.set(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.ObjectPropertyPathRef.set(java.lang.Object newVal,
Configuration configuration) |
void |
PathRef.ObjectMultiPropertyPathRef.set(java.lang.Object newVal,
Configuration configuration) |
| Constructor and Description |
|---|
JsonContext(Configuration configuration) |
JsonContext(java.lang.Object json,
Configuration configuration) |
| Modifier and Type | Field and Description |
|---|---|
private Configuration |
EvaluationContextImpl.configuration |
private Configuration |
PredicateContextImpl.configuration |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
EvaluationContextImpl.configuration() |
Configuration |
PredicateContextImpl.configuration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PredicatePathToken.accept(java.lang.Object obj,
java.lang.Object root,
Configuration configuration,
EvaluationContextImpl evaluationContext) |
EvaluationContext |
CompiledPath.evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration) |
EvaluationContext |
CompiledPath.evaluate(java.lang.Object document,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate) |
| Constructor and Description |
|---|
EvaluationContextImpl(Path path,
java.lang.Object rootDocument,
Configuration configuration,
boolean forUpdate) |
PredicateContextImpl(java.lang.Object contextDocument,
java.lang.Object rootDocument,
Configuration configuration,
java.util.HashMap<Path,java.lang.Object> documentPathCache) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
GsonMappingProvider.map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration) |
<T> T |
JacksonMappingProvider.map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration) |
<T> T |
JsonSmartMappingProvider.map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration) |
<T> T |
MappingProvider.map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration) |
<T> T |
GsonMappingProvider.map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
JacksonMappingProvider.map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
JsonSmartMappingProvider.map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration) |
<T> T |
MappingProvider.map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration) |