JSONPath is a query language for JSON, similar to XPath for XML. AlertSite API endpoint monitors let you use JSONPath in assertions to specify the JSON fields that need to be verified. JSONPath Notation A JSONPath expression specifies a path to an el…
import com.jayway.jsonpath.JsonPath; import com.jayway.jsonpath.Predicate; import net.minidev.json.JSONArray; public class Test { public static String readjson(String json, String jsonPath) { try { Object value = JsonPath.read(json, jsonPath, new Pre…