Skip to main content
Returns whether the input string is a valid JSON document. Returns NULL if the input is NULL.

Syntax

Aliases

Parameters

Return Type

The JSON_IS_VALID function returns a result of type BOOL.

Remarks

If you want to know why the input string is invalid JSON, you can also use the CHECK_JSON function.

Examples

Example The following code example validates a valid JSON string and returns TRUE:

Rows: 1Execution time: 5.85ms

Example The following code example validates an invalid JSON string (two JSON objects concatenated) and returns FALSE:

Rows: 1Execution time: 5.33ms