Created
May 13, 2018 22:48
-
-
Save efossas/045cc8aaa6492c80d9c109fcac726890 to your computer and use it in GitHub Desktop.
papaparse.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get csvStr, and pass it to .parse | |
let csv = Papa.parse(csvStr,{ | |
transform: function (value) { | |
try { | |
return JSON.parse(value); | |
} catch(err) { | |
return value; | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment