diff --git a/content/en/ddsql_reference/ddsql_default.md b/content/en/ddsql_reference/ddsql_default.md index bb5b73475b0b6..4db612d829ca4 100644 --- a/content/en/ddsql_reference/ddsql_default.md +++ b/content/en/ddsql_reference/ddsql_default.md @@ -460,6 +460,12 @@ SELECT * FROM k8s.daemonsets da INNER JOIN k8s.deployments de ON da.tags = de.tags -- for a specific tag: da.tags->'app' = de.tags->'app' ``` +### JSON functions and operators + +| Name | Return type | Description | +|------|-------------|-------------| +| json_extract_path_text(text json, text path…) | text | Extracts the JSON sub-object in JSON as text, defined by the path. Its behavior is equivalent to the [postgres function with the same name][2]. For example, `json_extract_path_text(col, ‘forest')` returns the value of the key `forest` for each JSON object in `col`. See the example below for a JSON array syntax.| +| json_extract_path(text json, text path…) | json | Same functionality as `json_extract_path_text`, but returns a column of JSON type instead of text type.| ## Further reading