title: REST Assured - Generic List deserialization
body: <p>Let's say I have a Java <code>Person</code> class:</p>
  
  <pre><code>class Person {
      String name;
      String email;
  }
  </code></pre>
  
  <p>With REST Assured, you can deserialize this JSON object</p>
  
  <pre><code>{"name":"Bob", "email":"bob@email.com"} 
  </code></pre>
  
  <p>to a Java <code>Person</code> instance using</p>
  
  <pre><code>Person bob = given().when().get("person/Bob/").as(Person.class);
  </code></pre>
  
  <p>How does one use REST Assured to deserialize this JSON array</p>
  
  <pre><code>[{"name":"Bob", "email":"bob@email.com"}, 
   {"name":"Alice", "email":"alice@email.com"}, 
   {"name":"Jay", "email":"jay@email.com"}]
  </code></pre>
  
  <p>into a <code>List&lt;Person&gt;</code>? For example, this would be handy:</p>
  
  <pre><code>List&lt;Person&gt; persons = given().when().get("person/").as(...);
  </code></pre>