JSON_REMOVE
Overview
Removes the element at the specified path from a JSON object and returns the resulting JSON. If the path does not exist, the original JSON is returned without error.
Syntax
Parameters
<json_obj>: JSON type, the source JSON object. Typically used together withPARSE_JSON().<path>: STRING type, a JSONPath expression such as$.keyor$.a.b. Wildcards are not supported; if the path does not exist, the original JSON is returned.
Examples
Related Documentation
- PARSE_JSON — Parse a string into a JSON object
- JSON_EXTRACT — Extract the value at a specified path from JSON
