Check out example codes for "mysql json change key". It will help you in understanding the concepts better.

Code Example 1

UPDATE `my_table` 
SET `my_col` = JSON_INSERT(
                           JSON_REMOVE(my_col, '$.oldKeyValue'), 
                           '$.newKeyValue', 
                           JSON_EXTRACT(my_col, '$.oldKeyValue')
                          );

Learn ReactJs, React Native from akashmittal.com