To export json array to an excel file, taking in mind big amount of data and performance, which approach is preferred:
Generate the file in the back end and download it.
Generate the file on the client side (Browser) using a library like XLSX to convert json array to excel.