Class JsonPathUtils
java.lang.Object
org.springframework.integration.json.JsonPathUtils
public final class JsonPathUtils extends Object
Utility class to
evaluate(java.lang.Object, java.lang.String, com.jayway.jsonpath.Predicate...)
a jsonPath on the provided object.
Delegates evaluation to JsonPath.
Note evaluate(java.lang.Object, java.lang.String, com.jayway.jsonpath.Predicate...)
is used as #jsonPath()
SpEL function.- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
-
Method Details
-
evaluate
public static <T> T evaluate(Object json, String jsonPath, com.jayway.jsonpath.Predicate... predicates) throws IOException- Throws:
IOException
-