PostgreSQL: removing specific key of each elements in JSONB array
I am having a table where one column is a JSONB column that has the following payload: [ {a: "foo", b: "bar"}, {a: "bar", b: "baz"} ] I want to remove the "b" element for each array item: SELECT json_build_object(…