private String jsonRemove(String jsonDoc, ArrayList<String> paths) {
        if (jsonDoc == null || paths == null) {
            return null;
        }

        Object json = JSON.parse(jsonDoc);

        for (String path : paths) {
            if (path.equals("$") || path.contains("*") || path.contains("**")) {
                throw new IllegalArgumentException("Invalid path expression: " + path);
            }

            JSONPath.remove(json, path);
        }

        return json.toString();
    }
JsonRemoveFunction   ->  JSON_REMOVE(json_doc, path[, path] ...)
description:
- return NULL if any argument is NULL or the 'json_doc' argument is not a valid JSON document or any path argument
         is not a valid path expression or is $ or contains a * or ** wildcard;
- return the result of removing data from 'json_doc'.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/json/JsonRemoveFunction.java