Creating Object for Header with Period in the Name
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?
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?