JSON Functions
This sheet is a quick reference for JSON functions that are frequently used in data analysis and programming. Each function has its syntax, a sample and a short description.
JSON_EXTRACT
The JSON_EXTRACT function gets a value from a JSON string. It uses a syntax like jq.
Syntax
JSON_EXTRACT(json_string, path)Sample
JSON_EXTRACT('{"a": {"b": "c"}}', '.a.b') => "c"
JSON_EXTRACT({json_column}, '.key')Remark
json_stringmust be a valid JSON string.pathuses a dot notation like jq (for example,.a.bto get nested values).- The function returns the value as a string.
Last updated on
Latest product updates?See Changelog