# How to export json array into excel(xlsx format) in angular2

**URL:** <https://forum.ionicframework.com/t/how-to-export-json-array-into-excel-xlsx-format-in-angular2/75859>\
**Category:** ionic-v3\
**Created:** [January 11, 2017, 10:39am UTC](https://forum.ionicframework.com/t/how-to-export-json-array-into-excel-xlsx-format-in-angular2/75859 "2017-01-11T10:39:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjeyaraj](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mjeyaraj](https://forum.ionicframework.com/u/mjeyaraj)\
**Post date:** [January 11, 2017, 10:39am UTC](https://forum.ionicframework.com/t/how-to-export-json-array-into-excel-xlsx-format-in-angular2/75859/1 "2017-01-11T10:39:35Z")

</div>

Hi I am trying to export json array items using **alasql**.  
When i click a button i am exporting the data to excel using the code below

"alasql("SELECT \* INTO XLSX(‘Details.xlsx’,{headers:true}) FROM ? “,[this.items]);”

The excel is getting downloaded in browser but not in mobile.

Kindly guide me is there any native api to export the data to excel in mobile or am i doing anything wrong?

---

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://forum.ionicframework.com/u/basti)\
**Post date:** [March 13, 2017, 7:29pm UTC](https://forum.ionicframework.com/t/how-to-export-json-array-into-excel-xlsx-format-in-angular2/75859/2 "2017-03-13T19:29:15Z")

</div>

Do you have any news here?
