Skip to content

Commit 2118bf9

Browse files
committed
docs: add docs for ParseJson function (#339)
1 parent 1c3f6c5 commit 2118bf9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/docs/ops/functions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ description: CocoIndex Built-in Functions
55

66
# CocoIndex Built-in Functions
77

8+
## ParseJson
9+
10+
`ParseJson` parses a given text to JSON.
11+
12+
The spec takes the following fields:
13+
14+
* `text` (type: `str`, required): The source text to parse.
15+
* `language` (type: `str`, optional): The language of the source text. Only `json` is supported now. Default to `json`.
16+
17+
Return type: `Json`
18+
819
## SplitRecursively
920

1021
`SplitRecursively` splits a document into chunks of a given size.

0 commit comments

Comments
 (0)