Package | Description |
---|---|
com.jayway.jsonpath | |
com.jayway.jsonpath.internal | |
com.jayway.jsonpath.spi.cache |
Modifier and Type | Method and Description |
---|---|
static JsonPath |
JsonPath.compile(String jsonPath,
Predicate... filters)
Compiles a JsonPath
|
Modifier and Type | Method and Description |
---|---|
DocumentContext |
WriteContext.add(JsonPath path,
Object value)
Add value to array at the given path
|
DocumentContext |
WriteContext.delete(JsonPath path)
Deletes the given path
|
DocumentContext |
WriteContext.map(JsonPath path,
MapFunction mapFunction)
Replaces the value on the given path with the result of the
MapFunction . |
DocumentContext |
WriteContext.put(JsonPath path,
String key,
Object value)
Add or update the key with a the given value at the given path
|
<T> T |
ReadContext.read(JsonPath path)
Reads the given path from this context
|
<T> T |
ReadContext.read(JsonPath path,
Class<T> type)
Reads the given path from this context
|
<T> T |
ReadContext.read(JsonPath path,
TypeRef<T> typeRef)
Reads the given path from this context
Sample code to create a TypeRef
TypeRef ref = new TypeRef |
DocumentContext |
WriteContext.renameKey(JsonPath path,
String oldKeyName,
String newKeyName)
Renames the last key element of a given path.
|
DocumentContext |
WriteContext.set(JsonPath path,
Object newValue)
Set the value a the given path
|
Modifier and Type | Method and Description |
---|---|
DocumentContext |
JsonContext.add(JsonPath path,
Object value) |
DocumentContext |
JsonContext.delete(JsonPath path) |
DocumentContext |
JsonContext.map(JsonPath path,
MapFunction mapFunction) |
DocumentContext |
JsonContext.put(JsonPath path,
String key,
Object value) |
<T> T |
JsonContext.read(JsonPath path) |
<T> T |
JsonContext.read(JsonPath path,
Class<T> type) |
<T> T |
JsonContext.read(JsonPath path,
TypeRef<T> type) |
DocumentContext |
JsonContext.renameKey(JsonPath path,
String oldKeyName,
String newKeyName) |
DocumentContext |
JsonContext.set(JsonPath path,
Object newValue) |
Modifier and Type | Method and Description |
---|---|
JsonPath |
LRUCache.get(String key) |
JsonPath |
Cache.get(String key)
Get the Cached JsonPath
|
JsonPath |
NOOPCache.get(String key) |
JsonPath |
LRUCache.getSilent(String key) |
Modifier and Type | Method and Description |
---|---|
void |
LRUCache.put(String key,
JsonPath value) |
void |
Cache.put(String key,
JsonPath value)
Add JsonPath to the cache
|
void |
NOOPCache.put(String key,
JsonPath value) |
Copyright © 2021. All rights reserved.