When converting the CSV to JSON if a field has commas (between "") it parses it wrong:
For example for row (with headers Municipality,Percentage of migrant population over the total population):
"Acebeda, La",1.41
it should be parsed as:
{
"Municipality": "Acebada, La",
"Percentage of migrant population over the total population": 1.41
}
instead, it is parsed as:
{
"Municipality":"\"Acebeda",
"Percentage of migrant population over the total population":" La\""
}
When converting the CSV to JSON if a field has commas (between "") it parses it wrong: For example for row (with headers Municipality,Percentage of migrant population over the total population):
"Acebeda, La",1.41
it should be parsed as:instead, it is parsed as:
This may be helpful https://www.npmjs.com/package/csvtojson