public static <T> T get(JsonNode root, String field, Class<T> klazz) throws HyscaleException {
        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, klazz);
    }
@param root
@param field
@param klazz 
@param <T> class object to be returned
@return object of class T
@throws HyscaleException
service-spec/service-spec-commons/src/main/java/io/hyscale/servicespec/commons/json/parser/JsonTreeParser.java