I have a simple query as follows:
select json_agg(json_build_object( \'name\',\'name\', \'score\',random(), \'