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

convert uploaded csv to json is not working #170

Open
sudipzoom opened this issue Jun 19, 2024 · 0 comments
Open

convert uploaded csv to json is not working #170

sudipzoom opened this issue Jun 19, 2024 · 0 comments

Comments

@sudipzoom
Copy link

sudipzoom commented Jun 19, 2024

Hi Author/ contributors, converting a uploaded csv to a json array (header :value ) is not working with readString.
I needed to introduce extra methodology for the conversion.

onUploadAccepted={(results,file) => handleFileAccepted(results,file)}

function handleFileAccepted(data,file){


}

In above method data is used to show tables on screen using react-papaparse
file is used to read the event.target.results as blob by filereader and then parse that into a readable json array for backend use. here I could not able to use your pacakge react-papaparse.

It is not at all clear that how readString works. I tried a lot but readString always gives me bunch arrays(header arrays, value arrays) . However I request you to clearly mention in docs how does readString work though I did this using another method but it will be helpful for new users if they could utilize the same package. Thanks.

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