jackson-annotations
jackson-annotations copied to clipboard
Add support for prefix and suffix on @JsonAnySetter annotation
In our POJO we have 2 Map fields and both have keys prefixes.
So it will very help if @JsonAnySetter annotation will support some prefixes and suffixes.
class Request {
@JsonAnySetter(prefix="loc_")
private Map<String, String> location;
@JsonAnySetter(prefix="u_")
private Map<String, String> user;
}
Contributions welcome!
@cowtowncoder can you please help to understand the flow to add this functionality?
- to create PR to change the
@JsonAnySetterannotation - to create PR in https://github.com/FasterXML/jackson-databind to test new functionality?
@alxxyz Yes, jackson-databind has the annotation introspectors. Testing would probably require local snapshot builds.