Spring mapping JSON to java POJO
<p>I have API which returns JSON in this format:</p>

<pre><code>[
    { "shrtName": "abc", "validFrom": "2016-10-23", "name": "aaa", "version": 1 },
    { "shrtName": "def", "validFrom": "2016-11-20", "name": "bbb", "version": 1 },
    { "shrtName": "ghi", "validFrom": "2016-11-22", "name": "ccc", "version": 1 }   
]
</code></pre>

<p>I have this code which reads API and returns it as a String. But I want to read this API and map it into the Java POJO class.</p>

<pre><code>public String downloadAPI(){
        RestTemplate restTemplate = new RestTemplate();
        HttpHeaders headers = new HttpHeaders();
        headers.set("API-Key", "4444444-3333-2222-1111-88888888"); 
        HttpEntity&lt;?&gt; requestEntity = new HttpEntity&lt;Object&gt;(headers);
        String URL = "https://aaaaaaa.io/api/v1/aaaaaaaaa?date=2015-04-04;
        restTemplate.getMessageConverters().add(new StringHttpMessageConverter());
        ResponseEntity&lt;String&gt; response = restTemplate.exchange(URL, HttpMethod.GET, requestEntity, String.class);
        return response.getBody();
}
</code></pre>

<p>My questions:<br>
1) Format of POJO?<br>
2) Changes in my method (return type POJO instead of String)</p>