public static JsonNode get(JsonNode root, String field) {
        if (root == null) {
            return null;
        }
        if (!field.startsWith(JsonPathConstants.JSON_ROOT_PATH)) {
            field = JsonPathConstants.JSON_ROOT_PATH + field;
        }
        return JsonPath.using(JsonPathConfiguration.getConfiguration()).parse(root.toString()).read(field,
                JsonNode.class);
    }
Get JsonNode for field from the root
@param root
@param field
@return JsonNode for field
service-spec/service-spec-commons/src/main/java/io/hyscale/servicespec/commons/json/parser/JsonTreeParser.java