-
-
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
Bug @JsonProperty default value in versions 2.8.3 and 2.8.4 #1420
Comments
Quick note: As to output, 2.8.3 and later are as expected: global It is unfortunate if 2.8.2 behaved differently; it should not have excluded the value. |
I'm using annotation @JsonProperty(defaultValue = "1") for my property. I have ObjectMapper with serialization setting 'JsonInclude.Include.NON_DEFAULT'. But after serializing i have a String-object with this property with default value.
Sample class:
Serializing object in String with version 2.8.2: {}
Serializing object in String with version 2.8.3 or 2.8.4: {a:1}
The text was updated successfully, but these errors were encountered: