使用函数JSON_REPLACE():
用法:JSON_REPLACE(json_doc, path, val[, path, val] …)
用例:
条件更新表A中的复杂JSON字段componment_data中的数据
UPDATE a set component_data=JSON_REPLACE(component_data, '$.maintenanceDepartment[0].label', '李四的家人') WHERE component_data like '%李四%';
附上官方链接