From dc1dacf0f27971dba0d119265ca4466b1f44edac Mon Sep 17 00:00:00 2001 From: LJ Date: Thu, 17 Apr 2025 22:44:53 -0700 Subject: [PATCH] docs: add docs for `ParseJson` function --- docs/docs/ops/functions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/docs/ops/functions.md b/docs/docs/ops/functions.md index 0d33b38d2..fa73805e3 100644 --- a/docs/docs/ops/functions.md +++ b/docs/docs/ops/functions.md @@ -5,6 +5,17 @@ description: CocoIndex Built-in Functions # CocoIndex Built-in Functions +## ParseJson + +`ParseJson` parses a given text to JSON. + +The spec takes the following fields: + +* `text` (type: `str`, required): The source text to parse. +* `language` (type: `str`, optional): The language of the source text. Only `json` is supported now. Default to `json`. + +Return type: `Json` + ## SplitRecursively `SplitRecursively` splits a document into chunks of a given size.