Class JsonPathHandler
java.lang.Object
org.qubership.atp.environments.helper.JsonPathHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByJsonpath(String json, String jsonpath) Gets formatted json by jsonpath.
-
Constructor Details
-
JsonPathHandler
public JsonPathHandler()
-
-
Method Details
-
getByJsonpath
public String getByJsonpath(String json, String jsonpath) throws com.jayway.jsonpath.PathNotFoundException Gets formatted json by jsonpath.- Parameters:
json- - input json structurejsonpath- - jsonpath for getting part of input json structure- Returns:
- string in json format
- Throws:
com.jayway.jsonpath.PathNotFoundException- - exception during finding jsonpath in input json structure
-