-
-
Notifications
You must be signed in to change notification settings - Fork 229
Unwrapping lists does not work inside @JsonUnwrapped
#762
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
Comments
I've implemented a solution, but it involves quite a bit of copy-pasting and overriding of Jackson internals. It might give an idea of what it takes to support this though, so I'll describe my solution below. Step 1: make sure that the
|
@JacksonXmlElementWrapper(useWrapping = false)
results in an exception being thrown when used inside a@JsonUnwrapped
property:A small reproducer of what I'm trying to achieve is described below. Note that my example does not make sense in any real application without the context of my actual application, but it's a clear minimal example to show what is happening.
XML I'm deserializing:
Classes I'm deserializing to:
The following code then throws the aformentioned exception:
Related: #676
The order of "unwrapping" here is the other way around.
The text was updated successfully, but these errors were encountered: