I have json list in table like:
[{ "a": 1, "b": 2, "c": 3 }, {"a":1, "b":2, "a":3}]
And i want remove all "a" keys. How i can do it?
I tried this:
UPDATE mytable
SET list = list::jsonb - 'a'
But it is not working.
I want this result:
[{"b": 2, "c": 3 }, {"b":2}]
, {"a";3}to the input data, and also adjust the expected result (if needed.)