I have a table containing a json array of objects similar to this:
id | record
____________________
name1 | [{"a":0, "b":x}, {"a":1, "b":y}, {"a":2, "b":z}, ...]
I would like to get a table containing a json array of only, say, the "a" values:
id | record
____________________
name1 | [0, 1, 2, ...]
I use PostgreSQL 11, so the latest functions are acceptable.