postgresql delete attribute from json array 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)