Check out example codes for "updating json object in mysql database". It will help you in understanding the concepts better.

Code Example 1

SET @data = '{  
    "Person": {    
       "Name": "Homer", 
       "Hobbies": ["Eating", "Sleeping"]  
    }
 }';
SELECT JSON_SET(@data, '$.Person.Name', 'Bart', '$.Person.Hobbies[1]', "Mischief") AS 'Result';

Learn ReactJs, React Native from akashmittal.com