title: How RestTemplate parse response
body: <p>While developing spring REST Client, appear a problem:</p>
  
  <ol>
  <li>I have next json:</li>
  </ol>
  
  <p><br></p>
  
  <pre><code>{
   "return": [
   {
      "admin": false,
      "alias": "",
      "email": "",
      "emailId": {"value": 0},
      "groups": [],
      "id": {"value": 1},
      "locked": false,
      "loggedInCount": 0,
      "master": true,
      "sms": "",
      "smsId": {"value": 0},
      "type": "POWER",
      "username": "NGCP"
   },
   {
      "admin": false,
      "alias": "",
      "email": "",
      "emailId": {"value": 0},
      "groups": [{"value": 2}],
      "id": {"value": 3},
      "locked": false,
      "loggedInCount": 0,
      "master": false,
      "sms": "",
      "smsId": {"value": 0},
      "type": "POWER",
      "username": "POLICY"
   }
          ]
  }
  </code></pre>
  
  <p>Model class to save User:
  <br></p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class User {
  
     public User(){
  
     }
  
     private boolean admin;
  
     private String alias;
  
     private String email;
  
     private String emailId;
  
     private ArrayList&lt;String&gt; groups;
  
     private String id;
  
     private boolean locked;
  
     private int loggedInCount;
  
     private boolean master;
  
     private String sms;
  
     private String smsId;
  
     private String type;
  
     private String userName;
  
  //getter and setters
  }
  </code></pre>
  
  <p>Now I'm using "RestTemplate" to get result.
  <br></p>
  
  <pre><code>RestTemplate restTemplate = new RestTemplate();
  ResponseEntity&lt;User[]&gt; response = restTemplate.exchange(URL_GET,HttpMethod.GET,request, User[].class);
  </code></pre>
  
  <p>And get error. I know that is because main key is "result" but can I specify from where should restTemplate parse this JSON? </p>
  
  <p>And it's possible to indicate on fileds liks "emailId" to get direct value? some templates?</p>