-
Notifications
You must be signed in to change notification settings - Fork 207
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
How to prevent echo '{ "a": "0123" }' | mlr --json cat --> {"a": 0123 } ? #178
Comments
Looks like #151 but it's not:
Looks like a simple oversight; I'll check it out. Thanks for letting me know!!! |
|
OK, sorry for the delay. This is not a pretty story.
Options:
|
Appears to be related to #211 |
I'm facing a related issue where some of my integers must be quoted in the output JSON, and others must be not (downstream system requirement). |
Hi @dbabits -- the best I can see in the near term is perhaps a |
@johnkerl thanks.
|
Correct. I can do that though. |
that would be much appreciated, thanks. |
I have similar problem. Input (CSV): id,000000E020206941 Output (JSON): [ Id: string is wrongly treated as number.. |
This will be addressed by the Go port. |
This is working in the Go port:
|
I have tested and it's really great |
Fixed in Miller 6. |
Miller is not respecting that strings might have numbers (that are actually arbitrary IDs) inside. For example,
produces
Then, if you try to take that and put it back into miller, it results in an error.
How do I suppress this turning of a string into a number?
The text was updated successfully, but these errors were encountered: