/** * Produces the results of applying JsonPath query to Json content. This function does not support * arithmetic functions (e.g., length() in queries. * * @param queryPath The JsonPath query * @param content The Json content * @return A list of @{link JsonPathResult} entities */ public static List<JsonPathResult> getJsonPathResults(String queryPath, String content) { return getJsonPathResultsPvt( queryPath, JsonPath.parse(content, BatfishJsonPathDefaults.getDefaulConfiguration()).json()); }
/** * Produces the results of applying JsonPath query to Json content. This function does not support * arithmetic functions (e.g., length() in queries. * * @param queryPath The JsonPath query * @param content The Json content * @return A list of @{link JsonPathResult} entities */ public static List<JsonPathResult> getJsonPathResults(String queryPath, JsonNode content) { return getJsonPathResultsPvt( queryPath, JsonPath.parse(content, BatfishJsonPathDefaults.getDefaulConfiguration()).json()); }