Convert JSON Data into Excel File Download in Javascript
I have a AJAX POST Request fetching data back in form of a JSON Array. I want to convert this received JSON Data into an Excel File (Not CSV) for download (on a button-click), pls help. The JSON Data might have blank values and missing fields for each JSON row. I tried this in Client side using Javascript but not in Java server side in which case I will have to use @Produces(MediaType.MULTIPART_FORM_DATA) in the AJAX End-Point method, which is something I can try but think its complex. a) AJAX Request code: function fileUploadFunction() { var file = $('input[name="file"').get(0).files[0]; var
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.