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

Code Example 1

Update git_object
set  git_meta=JSON_ARRAY_APPEND(git_meta, '$', '{"host": "b"}')
where user_id='11111'

Learn ReactJs, React Native from akashmittal.com