title: Filter nested objects using Jackson's BeanPropertyFilter
body: <p>I have the following objects:</p>
  
  <pre><code>@JsonFilter("myFilter")
  public class Person {
      private Name name;
      private int age;
      public Name getName() {return name;}
      public void setName(Name name) {this.name = name;}
      public int getAge() {return age;}
      public void setAge(int age) {this.age = age;}
  }
  
  @JsonFilter("myFilter")
  public class Name {
      private String firstName;
      private String lastName;
      public String getFirstName() {return firstName;}
      public void setFirstName(String firstName) {this.firstName = firstName;}
      public String getLastName() {return lastName;}
      public void setLastName(String lastName) {this.lastName = lastName;}
  
  }
  </code></pre>
  
  <p>I wrote a method to marshall a Person object like this:</p>
  
  <pre><code>@Test
  public void test() throws Exception {
  
      Person person = new Person();
      person.setAge(10);
      Name name = new Name();
      name.setFirstName("fname");
      name.setLastName("lastname");
      person.setName(name);
  
      ObjectMapper mapper = new ObjectMapper();
  
      FilterProvider filters = new SimpleFilterProvider().addFilter("myFilter",
              SimpleBeanPropertyFilter.filterOutAllExcept("name.firstName"));
  
      System.out.println(mapper.filteredWriter(filters).writeValueAsString(person));
  
  }
  </code></pre>
  
  <p>What I'd like to see is JSON like this:</p>
  
  <pre><code>{"name":{"firstName":"fname"}}
  </code></pre>
  
  <p>Is something like that possible?</p>