jackson-databind
jackson-databind copied to clipboard
`@JsonFilter` applying to a non-POJO property within its current pojo
@JsonFilter's property support acts as if the property's class had been annotated with @JsonFilter, so the filter is applied to each of the property's class' properties.
I request a way to annotate a property such that the filter is run on it, as a member of its current class/pojo, as if its class had been annotated with @JsonFilter but with the filter not applying to the other properties in the class.
Maybe @JsonFilter could have a parameter when used on properties? Or maybe a new annotation named @JsonPropertyFilter?
There's some discussion of people wanting this and trying to work around here: https://stackoverflow.com/questions/39774718/jackson-jsonfilter-is-not-getting-applied-when-used-at-field-or-method-level