| Package | Description |
|---|---|
| com.jayway.jsonpath | |
| com.jayway.jsonpath.internal | |
| com.jayway.jsonpath.spi.cache |
| Modifier and Type | Method and Description |
|---|---|
static JsonPath |
JsonPath.compile(java.lang.String jsonPath,
Predicate... filters)
Compiles a JsonPath
|
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
WriteContext.add(JsonPath path,
java.lang.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,
java.lang.String key,
java.lang.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,
java.lang.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,
java.lang.String oldKeyName,
java.lang.String newKeyName)
Renames the last key element of a given path.
|
DocumentContext |
WriteContext.set(JsonPath path,
java.lang.Object newValue)
Set the value a the given path
|
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
JsonContext.add(JsonPath path,
java.lang.Object value) |
DocumentContext |
JsonContext.delete(JsonPath path) |
DocumentContext |
JsonContext.map(JsonPath path,
MapFunction mapFunction) |
DocumentContext |
JsonContext.put(JsonPath path,
java.lang.String key,
java.lang.Object value) |
<T> T |
JsonContext.read(JsonPath path) |
<T> T |
JsonContext.read(JsonPath path,
java.lang.Class<T> type) |
<T> T |
JsonContext.read(JsonPath path,
TypeRef<T> type) |
DocumentContext |
JsonContext.renameKey(JsonPath path,
java.lang.String oldKeyName,
java.lang.String newKeyName) |
DocumentContext |
JsonContext.set(JsonPath path,
java.lang.Object newValue) |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,JsonPath> |
LRUCache.map |
| Modifier and Type | Method and Description |
|---|---|
JsonPath |
Cache.get(java.lang.String key)
Get the Cached JsonPath
|
JsonPath |
LRUCache.get(java.lang.String key) |
JsonPath |
NOOPCache.get(java.lang.String key) |
JsonPath |
LRUCache.getSilent(java.lang.String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
Cache.put(java.lang.String key,
JsonPath value)
Add JsonPath to the cache
|
void |
LRUCache.put(java.lang.String key,
JsonPath value) |
void |
NOOPCache.put(java.lang.String key,
JsonPath value) |