NULL if the input is NULL.
Syntax
Aliases
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<json_string> | The string to validate as JSON. | TEXT |
Return Type
TheJSON_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 theCHECK_JSON function.
Examples
Example The following code example validates a simple JSON string:TRUE
The previous code example returns TRUE because the input string is valid JSON.
Example
The following code example validates a simple JSON string:
FALSE
The previous code example returns FALSE because the input string is invalid JSON as it contains two JSON objects next to each other.