class JSONExtract2
        extends UDF {
    public String evaluate(String json, String path) {<FILL_FUNCTION_BODY>}
}

        if (json == null || json.isEmpty()) {
            return null;
        }

        Object result = null;
        try (JSONReader jsonReader = JSONReader.of(json)) {
            result = JSONPath.of(path)
                    .extract(jsonReader);
        } catch (Throwable ignored) {
            // ignored
        }

        if (result == null) {
            return null;
        }
        try {
            return JSON.toJSONString(result);
        } catch (Exception e) {
            return null;
        }
    
<no_super_class>