title: Spring MVC MappingJackson2JsonView Collection Element Repeated
body: <p>Given Person.java:</p>
  
  <pre><code>public class Person implements Serializable {
      private static final long serialVersionUID = 1L;
  
      private String lastName;
      private String firstName;
      private String middleName;
  
      // ...
  
      public String getLastName() {
          return lastName;
      }
  
      public String getFirstName() {
          return firstName;
      }
  
      public String getMiddleName() {
          return middleName;
      }
  }
  </code></pre>
  
  <p>and Persons.java:</p>
  
  <pre><code>public class Persons implements Serializable {
      private static final long serialVersionUID = 1L;
  
      private final List&lt;Person&gt; persons;
  
      public Persons(List&lt;Person&gt; persons) {
          this.persons = persons;
      }
  
      public List&lt;Person&gt; getPersons() {
          return persons;
      }
  }
  </code></pre>
  
  <p>When returning a JSON response for Persons, the "persons" element is repeated:</p>
  
  <pre><code>{
    "persons" : {
      "persons" : [ {
        "lastName" : "McCartney",
        "firstName" : "James",
        "middleName" : "Paul"
      }, {
        "lastName" : "Lennon",
        "firstName" : "John",
        "middleName" : "Winston"
      }, {
        "lastName" : "Starkey",
        "firstName" : "Richard",
        "middleName" : null
      }, {
        "lastName" : "Harrison",
        "firstName" : "George",
        "middleName" : null
      } ]
    }
  }
  </code></pre>
  
  <p>How do I remove the extra element?</p>