Allow 'JsonAnySetter' to flow through JsonCreator.
See original GitHub issueI could speed up some code if I could write:
@JsonCreator
public MyClass(@JsonProperty("a") String a, @JsonAnySetter Map<String, Object> leftovers) {}
Issue Analytics
- State:
- Created 9 years ago
- Reactions:39
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Use @JacksonInject with @JsonCreator on a top level map
I would like to deserialize my objects this way as it also allows to create immutable objects, instead of using @JsonAnySetter which doesn't ......
Read more >Guide to Jackson Annotations | Novixys Software Dev Blog
The solution is to use @JsonAnySetter on a method which accepts a key and a value to set the property. See below.
Read more >Jackson Annotations - Jenkov.com
The Jackson annotation @JsonAnySetter instructs Jackson to call the same setter method for all unrecognized fields in the JSON object.
Read more >Jackson JSON - Using @JsonAnySetter to deserialize ...
@JsonAnySetter annotation can be used to define "any setter" mutator. It is used on a non-static two-argument method; first argument is name ...
Read more >Flexible immutability with Jackson and Lombok - Luminis
Data model allows for flexible addition of properties at runtime ... I'm using @JsonCreator on the constructor to indicate that this ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@huhlig It would be nice to get it there, but I can not predict whether it will or not. I do think it would be great to get it to work but there are so many things to work on…
I will keep this in mind as one of “more/most wanted” issues.
Hi, I would also really like this (allows for immutable beans, and validation of data in constructor method).