I have two JSON rows in a PostgreSQL 9.4 table:
the_column
----------------------
{"evens": [2, 4, 6]}
{"odds": [1, 3, 5]}
I want to combine all of the rows into one JSON object. (It should work for any number of rows.)
Desired output:
{"evens": [2, 4, 6], "odds": [1, 3, 5]}