Syntax
Parameters
-
key: a key in the JSON object. Only the VARCHAR data type is supported. -
value: a value in the JSON object. OnlyNULLvalues and the following data types are supported: STRING, VARCHAR, CHAR, JSON, TINYINT, SMALLINT, INT, BIGINT, LARGEINT, DOUBLE, FLOAT, and BOOLEAN.
Return value
Returns a JSON object.
If the total number of keys and values is an odd number, the JSON_OBJECT function fills NULL in the last field.