public static boolean remove(Object root, String path) {
        JSONPath jsonpath = compile(path);
        return jsonpath.remove(root);
    }
Compile jsonPath and use it to extract keySet or field names from rootObject.

@param rootObject Can be a map or custom object. Array and Collection are not supported.
@param path JSONPath string to be compiled.
@return Set of keys, or <code>null</code> if not supported.
src/main/java/com/alibaba/fastjson/JSONPath.java