Skip to content

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

Open
@wasinr

Description

@wasinr

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));
});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions