Check out example codes for "postgresql update json field key value". It will help you in understanding the concepts better.

Code Example 1

UPDATE table_name SET attrs = jsonb_set(cast(attrs as jsonb), '{key}', '"new_value"', true) WHERE id = 'some_id';

Learn ReactJs, React Native from akashmittal.com