| arrow function | Queries the element that can be located by a path expression in a JSON object. | SELECT parse_json('{"a": {"b": 1}}') -> '$.a.b'; | 1 |
| cast | Converts data between a JSON data type and an SQL data type. | SELECT CAST(1 AS JSON); | 1 |
| get_json_double | Analyzes and gets the floating point value from a specified path in a JSON string. | SELECT get_json_double('{"k1":1.3, "k2":"2"}', "$.k1"); | 1.3 |
| get_json_int | Analyzes and gets the integer value from a specified path in a JSON string. | SELECT get_json_int('{"k1":1, "k2":"2"}', "$.k1"); | 1 |
| get_json_string | Analyzes and gets the strings from a specified path in a JSON string. | SELECT get_json_string('{"k1":"v1", "k2":"v2"}', "$.k1"); | v1 |
| json_query | Queries the value of an element that can be located by a path expression in a JSON object. | SELECT JSON_QUERY('{"a": 1}', '$.a'); | 1 |
| json_remove | Removes data from a JSON document at one or more specified JSON paths. | SELECT JSON_REMOVE('{"a": 1, "b": [10, 20, 30]}', '$.a', '$.b[1]'); | {"b": [10, 30]} |
| json_each | Expands the top-level elements of a JSON object into key-value pairs. | SELECT * FROM tj_test, LATERAL JSON_EACH(j); | !json_each |
| json_exists | Checks whether a JSON object contains an element that can be located by a path expression. If the element exists, this function returns 1. If the element does not exist, the function returns 0. | SELECT JSON_EXISTS('{"a": 1}', '$.a'); | 1 |
| json_keys | Returns the top-level keys from a JSON object as a JSON array, or, if a path is specified, the top-level keys from the path. | SELECT JSON_KEYS('{"a": 1, "b": 2, "c": 3}'); | ["a", "b", "c"] |
| json_length | Returns the length of a JSON document. | SELECT json_length('{"Name": "Alice"}'); | 1 |
| json_string | Converts the JSON object to a JSON string | SELECT json_string(parse_json('{"Name": "Alice"}')); | {"Name": "Alice"} |