public class JsonPathSelector extends ObjectSelector<com.jayway.jsonpath.JsonPath>
| Constructor and Description |
|---|
JsonPathSelector(com.fasterxml.jackson.databind.ObjectMapper mapper,
java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters) |
JsonPathSelector(java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters) |
| Modifier and Type | Method and Description |
|---|---|
static Selector |
J(java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters) |
static Selector |
jsonPathSelector(java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters) |
boolean |
matches(java.lang.Object key)
Indicates whether this Selector matches the
key. |
clone, getHeaderResolver, getObject, objectSelector, test, toStringpublic JsonPathSelector(com.fasterxml.jackson.databind.ObjectMapper mapper,
java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters)
public JsonPathSelector(java.lang.String jsonPath,
com.jayway.jsonpath.Filter... filters)
public static Selector J(java.lang.String jsonPath, com.jayway.jsonpath.Filter... filters)
public static Selector jsonPathSelector(java.lang.String jsonPath, com.jayway.jsonpath.Filter... filters)
public boolean matches(java.lang.Object key)
Selectorkey.matches in interface Selectormatches in class ObjectSelector<com.jayway.jsonpath.JsonPath>key - The key to matchtrue if there's a match, otherwise false.