title: How to parse correctly json data with RestTemplates and FasterXml-Jackson?
body: <p>I have this json string:
  {"status":"OK","copyright":"Copyright (c) 2016 The New York Times Company. All Rights Reserved.","section":"home","last_updated":"2016-03-30T16:02:01-05:00","num_results":19,"results":[{"section":"Health", ... }]</p>
  
  <p>And I only need the results, which are the top stories from New York Times.</p>
  
  <p>Here is my TopStory.class</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class TopStory {
  
      private String title;
      @JsonProperty("abstract")
      private String storyAbstract;
      private String url;
      private String section;
      private String published_date;
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public String getStoryAbstract() {
          return storyAbstract;
      }
  
      public void setStoryAbstract(String storyAbstract) {
          this.storyAbstract = storyAbstract;
      }
  
      public String getUrl() {
          return url;
      }
  
      public void setUrl(String url) {
          this.url = url;
      }
  
      public String getSection() {
          return section;
      }
  
      public void setSection(String section) {
          this.section = section;
      }
  
      public String getPublished_date() {
          return published_date;
      }
  
      public void setPublished_date(String published_date) {
          this.published_date = published_date;
      }
  
      public TopStory(String title, String storyAbstract, String url, String section, String published_date) {
  
          this.title = title;
          this.storyAbstract = storyAbstract;
          this.url = url;
          this.section = section;
          this.published_date = published_date;
      }
  }
  </code></pre>
  
  <p>And here is my TopStories.class</p>
  
  <pre><code>@JsonIgnoreProperties(ignoreUnknown = true)
  public class TopStories {
  
      @JsonProperty("results")
      private ArrayList&lt;TopStory&gt; stories;
  
      public TopStories(ArrayList&lt;TopStory&gt; stories) {
          this.stories = stories;
      }
  
      public ArrayList&lt;TopStory&gt; getStories() {
          return stories;
      }
  
      public void setStories(ArrayList&lt;TopStory&gt; stories) {
          this.stories = stories;
      }
  } 
  </code></pre>
  
  <p>This is the code I use in the main class: </p>
  
  <pre><code>RestTemplate restTemplate=new RestTemplate();
  restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
  ArrayList&lt;TopStory&gt; topStories=restTemplate.getForObject(url,TopStories.class).getStories();
  </code></pre>
  
  <p>I keep getting this exception. How can I fix this?</p>
  
  <pre><code>    org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class TopStories] and content type [text/json]
  </code></pre>