What exact problem are you trying to solve? Recursive CTEs return one row per internal invocation, so they already return a "set" of results, but you could use arrays or json if you wanted to pack in extra information per returned row.
Has anyone come across multiple sets of results with recursive query?
How to handle it?
Regards,
David