From 8225220ae005fbe5053f88de85a04d5564b4b3c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 19 Nov 2025 09:12:55 +0000 Subject: [PATCH] doc update (#4803) (cherry picked from commit b5c8a545b386bc95a2c314a56a2a9a1bb0788d8a) Signed-off-by: github-actions[bot] --- docs/user/ppl/functions/json.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/user/ppl/functions/json.rst b/docs/user/ppl/functions/json.rst index 0114cf5ef9b..26db6a6da93 100644 --- a/docs/user/ppl/functions/json.rst +++ b/docs/user/ppl/functions/json.rst @@ -62,6 +62,32 @@ Example:: | json scalar string | "abc" | "abc" | +--------------------+---------------------------------+---------------------------------+ +JSON_VALID +---------- + +Description +>>>>>>>>>>> + +Version: 3.1.0 + +Limitation: Only works when plugins.calcite.enabled=true + +Usage: `json_valid(value)` Evaluates whether a string uses valid JSON syntax. Returns TRUE if valid, FALSE if invalid. NULL input returns NULL. + +Argument type: STRING + +Return type: BOOLEAN + +Example:: + + os> source=people | eval is_valid_json = json_valid('[1,2,3,4]'), is_invalid_json = json_valid('{invalid}') | fields is_valid_json, is_invalid_json | head 1 + fetched rows / total rows = 1/1 + +---------------+-----------------+ + | is_valid_json | is_invalid_json | + |---------------+-----------------| + | True | False | + +---------------+-----------------+ + JSON_OBJECT ----------