Description
Extracts a value from JSON data using a path name
Syntax
GET_PATH(data, path_string)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| json | JSON value or string | JSON or string | Yes |
| path | JSON path to the value to extract | JSON path | Yes |
Notes
- Parser-only; normalizes to JSONExtract then JSON_EXTRACT mapping.
Example
SELECT
GET_PATH(data, 'user.name')
FROM
my_table t;