-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
null
String for Exception
s deserialized as String "null" instead of null
#1842
Comments
Jackson json module does not coerce JSON But I think it may be possible that specific deserializer for |
null
String for Exception
s deserialized as String "null" instead of null
Ok yes. Use of |
A JSON null value is being translated to a “null” string. Was supposed to be fixed in FasterXML/jackson-databind#1842 but it doesn’t appear to be.
A JSON null value is being translated to a “null” string. Was supposed to be fixed in FasterXML/jackson-databind#1842 but it doesn’t appear to be.
A JSON null value is being translated to a “null” string. Was supposed to be fixed in FasterXML/jackson-databind#1842 but it doesn’t appear to be.
is this issue fixed, if yes then could you please let us know the version? |
According to the doc it was fixed in 2.9.3: https://github.com/FasterXML/jackson-databind/blob/master/release-notes/VERSION-2.x |
@sanjaybsm see the "Milestone" on right side of this page. That is where version information is usually included. Fix is also listed under |
Hi!
I have been trying to solve this problem for over a day now, and what research I did showed that this should work, but it does not in my case, e.g. default behaviour should deserialize null objects to null objects, right?
The problem is that while serialization of string object properties with null value is fine, the deserialization is not.
What I want is, if string property value
Example code to reproduce the error:
Output:
See 'localizedMessage' and 'message' strings in serialized and deserialized output. Serialization is OK (null), deserialized is not ok (string containing "null")
Version: 2.9.1
The text was updated successfully, but these errors were encountered: