How to override a column of JSON type that has value = NULL to empty json, {}?
UPDATE `table`
SET `column_json` = JSON_SET(NULL, '{}', '{}')
WHERE
`condition` = 1;
I think you can simply check for IS NULL in the WHERE clause, and then set the JSON column to string {}. MySQL should be able to implicitly typecast the string literal (which is also a valid JSON literal) to JSON:
UPDATE `table`
SET `column_json` = '{}'
WHERE
`condition` = 1
AND `column_json` IS NULL