Open ClimbThatApple opened 2 years ago
Does the CSV file contain the quotes?
Have you also tried changing the quote
option
quote: If a column contains delimiter, it is able to use quote character to surround the column content. e.g. "hello, world" won't be split into two columns while parsing. Set to "off" will ignore all quotes. default: " (double quote)
I read now you say you're using fromString()
. What is the string exactly?
See my comment here: https://github.com/Keyang/node-csvtojson/issues/477#issuecomment-2311954088
seems like the same problem
I have headers that contain "." and the parser is creating an object like follows:
{"SKU":"SOMESKU","\"Google":{"com\"":"135.99"}}
the expected output would be:
{"SKU":"SOMESKU","Google.com":"135.99"}}
I am using the .fromString() method for converting. Is there something I am missing?