Need The Wix Code API to support EXPORTING A Dataset to CSV

I need to use the wix API to export a database to CSV format. I found tutorial on how to do it with wix code:
https://support.wix.com/en/article/corvid-tutorial-importing-and-exporting-collection-data-with-code

BUT, it only lets me create a JSON output format. Can this API be extended to write the output into CSV format?

Thanks
JD

If you’d pass via google sheet it could be the solution: