Is it possible to parse the json and jsob types?
Currenty pgo returns the column as binary.
OTP 27 will have a json module so it might make sense.
CREATE TEMPORARY TABLE j (
id SERIAL PRIMARY KEY,
name varchar(10)
);
INSERT INTO j (name) VALUES ('n1');
INSERT INTO j (name) VALUES ('n2');
SELECT json_agg(json_build_array(id, name)) FROM j;
Is it possible to parse the json and jsob types? Currenty pgo returns the column as binary. OTP 27 will have a json module so it might make sense.
I can't use array_agg instead of json_agg because arrays support only single data type.