title: Java - Get one item from ResponseEntity List
body: <p>My <code>ResponseEntity</code> returns a <code>&lt;List&gt;</code> , I only want to access one item in the list but the <code>.getBody()</code> method returns all the data.</p>
  
  <pre><code>RestTemplate restTemplate = new RestTemplate();
  ResponseEntity &lt;List&gt; result = restTemplate.getForEntity(uri, List.class);
  LOGGER.info(result.getBody());
  </code></pre>
  
  <p>The result looks something like this:</p>
  
  <pre><code>[{name: data, id: data}]
  </code></pre>
  
  <p>I want to get the <code>id</code>.How do I return a specific item from the list without using an index.</p>