Replies: 1 comment 1 reply
-
|
Can you close this and open an issue in https://github.com/FasterXML/jackson-dataformats-text (as opposed to a discussion)? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Jackson 2, the special character ~ was parsed as a NullNode, while in Jackson 3 I get a StringNode with value ~. It seems that the default behavior has changed.
I tried several YAML mapper configurations, but I couldn’t find any setting that reproduces the Jackson 2 behavior.
The issue can be reproduced with the following test:
OUTPUT:
node1 state: STRING
node2 state: NULL
I couldn’t find anything about this in the migration documentation.
Since my application logic depends on parsing files that may contain this special character, I need to stay compatible with the behavior implemented in Jackson 2.
Is there a way to configure the Jackson 3 mapper to get the same result as in Jackson 2?
Beta Was this translation helpful? Give feedback.
All reactions