I have the following objects:
@JsonFilter(\"myFilter\")
public class Person {
private Name name;
private int age;
public Name getName() {return n
Ok, figured it out. Varargs would have made this a bit prettier, but oh well. Just hope I don't have two inner beans which have properties with the same name. I wouldn't be able to make the distinction between the two
FilterProvider filters = new SimpleFilterProvider()
.addFilter("myFilter", SimpleBeanPropertyFilter
.filterOutAllExcept(new HashSet(Arrays
.asList(new String[] { "name", "firstName" }))));