CHECK_JSON

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Checks the validity of a JSON document. If the input string is a valid JSON document or a NULL, the output is NULL (i.e. no error). If the input cannot be translated to a valid JSON value, the output string contains the error message.

Syntax

CHECK_JSON( <string_or_variant_expr> )

Parameters

NameRequiredDescription
string_or_variant_exprrequiredA VARIANT or string value (or expression) to check. If the expression is of type VARIANT, it should contain a string.