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
Unexpected quotations when dumping #320
Comments
Did you tried online demo with your sample? Dumper keeps minimal possible quoting, and tries to beautify strings when possible for readability. As far as i see, loading dumed yaml (from your message) is equal to original. Did i missed something? |
As the author of the current scalar dumper, I hope this helps:
|
Thank you very much for the quick response.
Is there a way to avoid this default behavior then? If there is not, would you consider this to be a bug? |
I don't see enougth added value to change current behaviour. |
When dumping the following JSON, it seems there are some specific situations where strings are not held between quotation marks. For example when a certain string starts with 0, or "08" and "09" strings. Also, strings are not properly indented when containing \t or \r.
Input:
Output:
The text was updated successfully, but these errors were encountered: