| Package | Description |
|---|---|
| com.jayway.jsonpath | |
| com.jayway.jsonpath.internal | |
| com.jayway.jsonpath.internal.filter | |
| com.jayway.jsonpath.internal.path |
| Modifier and Type | Class and Description |
|---|---|
class |
Criteria |
class |
Filter |
private static class |
Filter.AndFilter |
private static class |
Filter.OrFilter |
private static class |
Filter.SingleFilter |
| Modifier and Type | Field and Description |
|---|---|
private Predicate |
Filter.OrFilter.left |
private Predicate |
Filter.SingleFilter.predicate |
private Predicate |
Filter.OrFilter.right |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<Predicate> |
Filter.AndFilter.predicates |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
WriteContext.add(java.lang.String path,
java.lang.Object value,
Predicate... filters)
Add value to array
|
Filter |
Filter.and(Predicate other) |
Filter |
Filter.AndFilter.and(Predicate other) |
Filter |
Filter.OrFilter.and(Predicate other) |
static JsonPath |
JsonPath.compile(java.lang.String jsonPath,
Predicate... filters)
Compiles a JsonPath
|
DocumentContext |
WriteContext.delete(java.lang.String path,
Predicate... filters)
Deletes the given path
|
static Filter |
Filter.filter(Predicate predicate)
Creates a new Filter based on given criteria
|
DocumentContext |
WriteContext.map(java.lang.String path,
MapFunction mapFunction,
Predicate... filters)
Replaces the value on the given path with the result of the
MapFunction. |
Criteria |
Criteria.matches(Predicate p)
The
matches operator checks that an object matches the given predicate. |
Filter |
Filter.or(Predicate other) |
DocumentContext |
WriteContext.put(java.lang.String path,
java.lang.String key,
java.lang.Object value,
Predicate... filters)
Add or update the key with a the given value at the given path
|
static <T> T |
JsonPath.read(java.io.File jsonFile,
java.lang.String jsonPath,
Predicate... filters)
Creates a new JsonPath and applies it to the provided Json object
|
static <T> T |
JsonPath.read(java.io.InputStream jsonInputStream,
java.lang.String jsonPath,
Predicate... filters)
Creates a new JsonPath and applies it to the provided Json object
|
static <T> T |
JsonPath.read(java.lang.Object json,
java.lang.String jsonPath,
Predicate... filters)
Creates a new JsonPath and applies it to the provided Json object
|
<T> T |
ReadContext.read(java.lang.String path,
java.lang.Class<T> type,
Predicate... filters)
Reads the given path from this context
|
<T> T |
ReadContext.read(java.lang.String path,
Predicate... filters)
Reads the given path from this context
|
static <T> T |
JsonPath.read(java.lang.String json,
java.lang.String jsonPath,
Predicate... filters)
Creates a new JsonPath and applies it to the provided Json string
|
static <T> T |
JsonPath.read(java.net.URL jsonURL,
java.lang.String jsonPath,
Predicate... filters)
Creates a new JsonPath and applies it to the provided Json object
|
DocumentContext |
WriteContext.renameKey(java.lang.String path,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Predicate... filters)
Renames the last key element of a given path.
|
DocumentContext |
WriteContext.set(java.lang.String path,
java.lang.Object newValue,
Predicate... filters)
Set the value a the given path
|
| Modifier and Type | Method and Description |
|---|---|
static Filter |
Filter.filter(java.util.Collection<Predicate> predicates)
Create a new Filter based on given list of criteria.
|
| Constructor and Description |
|---|
AndFilter(Predicate left,
Predicate right) |
JsonPath(java.lang.String jsonPath,
Predicate[] filters) |
OrFilter(Predicate left,
Predicate right) |
SingleFilter(Predicate predicate) |
| Constructor and Description |
|---|
AndFilter(java.util.Collection<Predicate> predicates) |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
JsonContext.add(java.lang.String path,
java.lang.Object value,
Predicate... filters) |
DocumentContext |
JsonContext.delete(java.lang.String path,
Predicate... filters) |
DocumentContext |
JsonContext.map(java.lang.String path,
MapFunction mapFunction,
Predicate... filters) |
DocumentContext |
JsonContext.put(java.lang.String path,
java.lang.String key,
java.lang.Object value,
Predicate... filters) |
<T> T |
JsonContext.read(java.lang.String path,
java.lang.Class<T> type,
Predicate... filters) |
<T> T |
JsonContext.read(java.lang.String path,
Predicate... filters) |
DocumentContext |
JsonContext.renameKey(java.lang.String path,
java.lang.String oldKeyName,
java.lang.String newKeyName,
Predicate... filters) |
DocumentContext |
JsonContext.set(java.lang.String path,
java.lang.Object newValue,
Predicate... filters) |
| Modifier and Type | Class and Description |
|---|---|
class |
ExpressionNode |
private static class |
FilterCompiler.CompiledFilter |
class |
LogicalExpressionNode |
class |
RelationalExpressionNode |
| Modifier and Type | Field and Description |
|---|---|
private Predicate |
FilterCompiler.CompiledFilter.predicate |
private Predicate |
ValueNode.PredicateNode.predicate |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
FilterCompiler.compile() |
Predicate |
ValueNode.PredicateNode.getPredicate() |
| Constructor and Description |
|---|
CompiledFilter(Predicate predicate) |
PredicateNode(Predicate predicate) |
| Modifier and Type | Field and Description |
|---|---|
private java.util.LinkedList<Predicate> |
PathCompiler.filterStack |
private java.util.Collection<Predicate> |
PredicatePathToken.predicates |
| Modifier and Type | Method and Description |
|---|---|
static Path |
PathCompiler.compile(java.lang.String path,
Predicate... filters) |
static PathToken |
PathTokenFactory.createPredicatePathToken(Predicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
static PathToken |
PathTokenFactory.createPredicatePathToken(java.util.Collection<Predicate> predicates) |
| Constructor and Description |
|---|
PredicatePathToken(Predicate filter) |
| Constructor and Description |
|---|
PathCompiler(java.lang.String path,
java.util.LinkedList<Predicate> filterStack) |
PredicatePathToken(java.util.Collection<Predicate> predicates) |