Skip to content
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 use of JsonNode field for @JsonAnySetter #3394

Closed
sixcorners opened this issue Feb 10, 2022 · 1 comment
Closed

Allow use of JsonNode field for @JsonAnySetter #3394

sixcorners opened this issue Feb 10, 2022 · 1 comment
Milestone

Comments

@sixcorners
Copy link

Is your feature request related to a problem? Please describe.
When working with unmapped nodes I want to work with JsonNode instead of Map.

Describe the solution you'd like
I want JsonAnySetter to support a field of the type JsonNode or maybe ObjectNode.

Usage example
class Test {
@JsonAnySetter
JsonNode extraData;
}
mapper.readValue("{"test": 3}", Test.class).extraData.path("test").intValue() == 3

Additional context
I'm a big fan of JsonNode.

@sixcorners sixcorners added the to-evaluate Issue that has been received but not yet evaluated label Feb 10, 2022
@cowtowncoder cowtowncoder changed the title Use JsonNode field for @JsonAnySetter? Allow use of JsonNode field for @JsonAnySetter Aug 2, 2022
@cowtowncoder cowtowncoder added this to the 2.14.0 milestone Aug 2, 2022
@cowtowncoder cowtowncoder added 2.14 and removed to-evaluate Issue that has been received but not yet evaluated labels Aug 2, 2022
@cowtowncoder
Copy link
Member

Will be in 2.14.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants