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

[FEATURE] When generating objects please add an option to preserve numerics when isNAN(value) returns false. #704

Open
1 of 2 tasks
jeffschwartz opened this issue Jul 28, 2021 · 0 comments
Assignees

Comments

@jeffschwartz
Copy link

jeffschwartz commented Jul 28, 2021

Parsing or Formatting?

  • Formatting
  • Parsing

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When parsing using headers numbers are always quoted and there is no option to preserve numerics. So a line in a csv file such as 109,The quick brown fox jumps over the lazy dog,ABC with a header of id,text,chars would be parsed as {id: "109", text: "The quick brown fox jumps over the lazy dog", chars: "ABC} but what I really want is {id: 109, text: "The quick brown fox jumps over the lazy dog", chars: "ABC"}.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Provide an option to preserve numerics that would test for isNAN and if that returns false would then convert the text to either an integer or a float.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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

No branches or pull requests

3 participants