NULL if the input string is a valid JSON document or NULL.
Otherwise, returns an error message.
Syntax
Parameters
Return Type
TheCHECK_JSON function returns a result of type TEXT.
Remarks
If you donβt care about the error message, you can also use theJSON_IS_VALID function.
Examples
Example The following code example validates a simple JSON string. ReturnsNULL because the input string is valid JSON.
Rows: 1Execution time: 5.15ms
Rows: 1Execution time: 4.89ms