Export data collection with wix code only

Hi Tal,
Thank u for your response.
What I am looking for is to be able to click on a button to make a download of my JSON file like that i can transform it into xlsx and can work with excel.
I managed to put the contents of my collection as a JSON file and put the result in a textbox or in a html block but I do not know how to export this result outside of wix by doing for example a download.
Regards.
Thomas.