-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
@JsonUnwrapped conflicts with @JsonAnySetter/@JsonAnyGetter #10
Comments
Not entirely surprised by this, and not sure if it can be fixed. But hope to figure it out, eventually. For future reference, bugs wrt handling of annotations should go in |
Hi @clanie |
For any poor souls who stumbled here looking for answers like I did, see FasterXML/jackson-databind#349 |
This is still broken as of 2.9.9 |
|
I have this class:
Which is used as an @JsonUnwrapped property in this class:
As you can see the class also has @JsonAnyGetter and @JsonAnySetter methods to collect other fields.
Now, if i deserialize this:
I get an ListUnspentResult object, where txid and vout are stored in both the txRef property annotated with @JsonUnwrapped AND in the otherFields map, and when I serialize it back to json, I get this:
where txid and vout (the properties of TransactionOutputRef ) are included twice.
The text was updated successfully, but these errors were encountered: