diff --git a/docs/developer-guide/ksqldb-reference/scalar-functions.md b/docs/developer-guide/ksqldb-reference/scalar-functions.md index 3b64b9820977..ee265d1d0a3a 100644 --- a/docs/developer-guide/ksqldb-reference/scalar-functions.md +++ b/docs/developer-guide/ksqldb-reference/scalar-functions.md @@ -495,6 +495,14 @@ Returns `false` if the first parameter does not contain a JSON array. Since: 0.25.0 +```sql +is_json_string(json_string) -> Boolean +``` + +Given a string, returns `true` if it can be parsed as a valid JSON value, `false` otherwise. + +Examples: + ```sql is_json_string("[1, 2, 3]") => true is_json_string("{}") => true @@ -506,8 +514,6 @@ is_json_string("abc") => false is_json_string(NULL) => false ``` -Given a string, returns `true` if it can be parsed as a valid JSON value, `false` otherwise. - ### `MAP` Since: 0.7.0