Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert CSV file to JSON after get file from chooser plugin #44

Open
wasinr opened this issue Aug 31, 2022 · 0 comments
Open

How to convert CSV file to JSON after get file from chooser plugin #44

wasinr opened this issue Aug 31, 2022 · 0 comments

Comments

@wasinr
Copy link

wasinr commented Aug 31, 2022

Hi!

Anyone know How to convert CSV file to JSON after get file from chooser plugin. Now I got data response back from Chooser plugin but I dont know how to convert it to JSON

my code is

async chooseFile(type) {
    this.chooser
      .getFile()
      .then((file: any) => {
        // let filename = file ? file.name : "canceled";
        alert(file.data);
        alert(JSON.stringify(file.data));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant