-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Error handling "null" String when Feature.MINIMIZE_QUOTES is active #116
Milestone
Comments
This works for me:
|
stefanleh
pushed a commit
to stefanleh/jackson-dataformats-text
that referenced
this issue
Jan 25, 2019
Signed-off-by: Stefan [email protected]
stefanleh
pushed a commit
to stefanleh/jackson-dataformats-text
that referenced
this issue
Jan 25, 2019
Signed-off-by: Stefan [email protected]
Sorry, I had missed this one. Adding on my W-I-P list. Sounds like worthy addition, yes. |
Thank you for reporting this, suggesting the fix. I manually merged fix in |
ahgittin
added a commit
to ahgittin/jackson-dataformats-text
that referenced
this issue
Mar 5, 2021
the logic added in c427465 for FasterXML#116 to force double-quoting of strings should only apply to single-line strings. the quoting of multi-line strings look naff, and because they take literal mode, the characters aren't special and the quotes are not necessary.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When serializing a String with content "null" and Feature.MINIMIZE_QUOTES is active the "null" value does not get quoted. Therefore when deserializing the value is not a String but null.
In com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.writeString(String) there is a special handling for boolean content like "true" and "false". Therefore id suggest to add special handling for "null" and "NULL" string values there as well.
What do you think about that?
The text was updated successfully, but these errors were encountered: