I have the following part of code that helps me mask certain attributes of a json response,
ObjectMapper mapper = new ObjectMapper(); mapper.setFilters(new SimpleFilterProvider().addFilter("sampleFilter", new SampleFilter()) .addFilter("simpleFilter",new SimpleFilter()));
But I realized that the setFilters() method is deprecated...I would like to replace this with an alternate method. Any help greatly appreciated!