I Have trouble to achive nested json array to the desired result
nested json array
Current Code:
SELECT Json_arrayagg(Json_object(\'report_id\', rc.report_i