Is it possible to selectively determine when the @JsonFilter annotation gets used at runtime?
I\'m getting JsonMappingException exception (see below) when I don\'t p
I know it's already been answered but for any newcommers Jackson has actually added the ability to not fail on missing filters (JACKSON-650): You just need to call SimpleFilterProvider.setFailOnUnknownId(false) and you won't get this exception.
SimpleFilterProvider.setFailOnUnknownId(false)