Keyang / node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line.
MIT License
2.02k stars 270 forks source link

When header has ".", it creates inner objects #477

Open Elvin1492-softeq opened 1 year ago

Elvin1492-softeq commented 1 year ago

When I have a header like "04. EQ Class", it separate the header to objects like below image

mebibou commented 2 months ago

From the documentation:

flatKeys: Don't interpret dots (.) and square brackets in header fields as nested object or array identifiers at all (treat them like regular characters for JSON field identifiers). Default: false.

Have you therefore tried { flatKeys: true }?