Code as we know it. Open source stuff goes here
select array_to_json(array_agg(row_to_json(t))) from (select firstname, lastname, favorite_number from person) t;
select json_agg(t) from (select firstname, lastname, favorite_number from person) t;
No comments:
Post a Comment