Syntax
Parameters
string_expr: the expression that represents the string. Only the STRING, VARCHAR, and CHAR data types are supported.
Return value
Returns a JSON value.
Note: If the string cannot be parsed into a standard JSON value, the PARSE_JSON function returns NULL (see Example 5). For information about the JSON specifications, see RFC 7159.
Examples
Example 1: Convert a STRING value of1 to a JSON value of 1.
NULL.
NULL. In this example, star is not enclosed in double quotation marks (”). Therefore, the PARSE_JSON function returns NULL.