This page describes the JSON functions in Lenses SQL.
Loading...
Loading...
This page describes the JSON_EXTRACT_ALL function in Lenses SQL.
Interprets ‘pattern’ as a Json path pattern and applies it to ‘json_string’, returning all matches, as an array of strings containing valid json. Examples for the pattern parameter: “$.a”, “$[‘a’]”, “$[0]”, “$.points[?(@[‘id’]==‘i4’)].x”, “$[‘points’][?(@[‘y’] >= 3)].id”, “$.conditions[?(@ == false)]”
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
✓
✓
This page describes the JSON_EXTRACT_FIRST function in Lenses SQL.
Interprets ‘pattern’ as a Json path pattern and applies it to ‘json_string’, returning the first match, as a string containing valid json. Examples for the pattern parameter: “$.a”, “$[‘a’]”, “$[0]”, “$.points[?(@[‘id’]==‘i4’)].x”, “$[‘points’][?(@[‘y’] >= 3)].id”, “$.conditions[?(@ == false)]”
Available in:
Processors | SQL Studio |
---|---|
Sample code:
Output:
✓
✓