-
-
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
Allow for multiple @JsonAnySetter when @JsonUnwrapped is supplied #2877
Comments
Ah. Yes, I can see how combination would make sense wrt Use does not work currently, both in that only POJOs support unwrapping (second oldest open issue, #171) but I can see how that'd make sense. |
Ah, I did not know that there was another open issue on this. I worked myself around this now using a serialization and deserialization converter that is generic enough to redirect any map's value to the correct collection but it is of course a bit tedious to maintain compared to the annotations. If the feature can ever make the cut, I think I'd be appreciated by a few powerusers but I see why this is not a top priority! |
It would be good to implement; problem lies more with implementation -- |
I am dealing with JSON where properties for certain areas are prefixed with given values. For example,
should be represented as a bean of three categories of property:
I understand that this is rather comples but the serialization works just fine. It would be brilliant being able to deserialize a JSON property if any property would only match one of the unwrapped specifications whereas any other property would end up in the non-unwrapped target.
The text was updated successfully, but these errors were encountered: