I have this json field in a table A called foo (A.foo is json data).
All the foo values are just arrays of object like "[{"a": 1, "b": 2}, {"a": 3, "b": 4}]", what I want to do is go through all the foo values and generate a table like :
a | b
1 | 2
3 | 4
where a and b are the columns and the values are in rows. Any idea on how I can do that? My field is json and not jsonb