postgresql remove a key value pair from a json object code example
Example: jsonb_set remove key
> select '{"a": 1, "b": 2}'::jsonb - 'a';
?column?
----------
{"b": 2}
(1 row)
> select '{"a": 1, "b": 2}'::jsonb - 'a';
?column?
----------
{"b": 2}
(1 row)