Given a JSON object with, say, three keys mapped to three values, is there a way in Jackson 2.15 or later to annotate some setter method or constructor of my POJO to receive the set of such keys, known and unknown?
e.g. something like:
@JsonCreator //...
public MyPojoConstructor(@JsonKeys /* maybe? */ Set<String> keys, ...) {
//...
}
I'm aware I can do all sorts of fancy custom things involving deserializers, @JsonAnySetter, etc. and composite the thing myself but this seemed like a use case that maybe others have had, and that therefore might have a "one shot" solution I'm simply overlooking.
Best,
Laird