Postgresql Select Rows As Json Array In Mysql