Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Object for Header with Period in the Name #434

Open
ClimbThatApple opened this issue Nov 8, 2021 · 2 comments
Open

Creating Object for Header with Period in the Name #434

ClimbThatApple opened this issue Nov 8, 2021 · 2 comments

Comments

@ClimbThatApple
Copy link

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?

@jfoclpf
Copy link

jfoclpf commented Jan 9, 2022

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)

@jfoclpf
Copy link

jfoclpf commented Jan 9, 2022

I read now you say you're using fromString(). What is the string exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants