JSON_SET
Sets a value in a JSON document at a specified path.
Analyze Syntax
func.json_set(get_column(table, 'data'), '$.age', 31)
Analyze Examples
func.json_set(get_column(table, 'data'), '$.age', 31)
┌──────────────┐
│ updated JSON │
└──────────────┘
SQL Syntax
JSON_SET(<data>, '$.age', 31)
SQL Examples
SELECT JSON_SET(PARSE_JSON('{"name":"Alice"}'), '$.age', 30);
┌───────────────────────────┐
│ {"name":"Alice","age":30} │
└───────────────────────────┘