-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add serialization support for @JsonUnwrapped
with ObjectNode
#3196
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
@JsonUnwrapped
with ObjectNode
@JsonUnwrapped
with ObjectNode
Note: the specific immediate challenge here is that instead of there being special Given this, it'd probably be necessary to change things slightly to, perhaps:
|
Quick note: alternatively we could consider allowing Actually... given there is already #3604 requesting just that, I will close this issue as "won't fix". |
Currently
@JsonUnwrapped
has no effect onObjectNode
(orJsonNode
) valued property.Although in general
JsonNode
is to be handled as-is, with minimal changes (unlike POJOs), this seems like one case where property-annotation would sometimes make sense.Specifically, it'd be great to allow sort "any-getter" alternative, where entries of an
ObjectNode
were written as if they were the properties to include without wrapper. Something like, say,would get serialized as
instead of what happens currently
NOTE: this issue is specifically for allowing serialization -- supporting deserialization side would have separate challenges.
The text was updated successfully, but these errors were encountered: