Skip to content

Commit c4ba665

Browse files
committed
docs: JSON extract
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
1 parent 9178666 commit c4ba665

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

content/docs/fields/field-types/formula/generic-functions.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,30 @@ RECORD_ID()
2121
RECORD_ID() => 1
2222
```
2323

24+
---
25+
26+
## JSON_EXTRACT
27+
28+
The `JSON_EXTRACT` function extracts a value from a JSON string using a jq-like syntax.
29+
30+
#### Syntax
31+
32+
```plaintext
33+
JSON_EXTRACT(json_string, path)
34+
```
35+
36+
#### Sample
37+
38+
```plaintext
39+
JSON_EXTRACT('{"a": {"b": "c"}}', '.a.b') => "c"
40+
JSON_EXTRACT({json_column}, '.key')
41+
```
42+
43+
#### Remark
44+
45+
* `json_string` must be a valid JSON string.
46+
* `path` follows jq-like dot notation (e.g., `.a.b` to access nested values).
47+
* Returns the extracted value as a string.
48+
49+
2450
---

0 commit comments

Comments
 (0)