title: Java Spring JSON parse error: Cannot deserialize instance out of START_ARRAY token
body: <p>I have a method with a restTemplate call like this:</p>
  
  <pre><code>restTemplate.getForObject(apiUrl ,Someclass.class);
  </code></pre>
  
  <p>Someclass.class:</p>
  
  <pre><code>@Data
  @Builder
  @NoArgsConstructor
  @AllArgsConstructor
  public class Imp implements Serializable {
      @JsonProperty("Id")
      private String Id;
  
      @JsonProperty("ReportId")
      private String ReportId;
  
      @JsonProperty("Title")
      private String Title;
  
      @JsonProperty("Name")
      private String Name;
  
      @JsonProperty("Uri")
      private String Uri;
  
  }
  </code></pre>
  
  <p>The API returns an array, and the <strong>error</strong> i'm receiving is:
  <em>org.springframework.web.client.RestClientException: Error while extracting response for type [class ...] and content type [application/json;charset=utf-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of <code>com...</code> out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of <code>com...</code> out of START_ARRAY token</em></p>
  
  <p>Which restTempalte method shoud i use to get proper api response?, or where is the problem?.thanks!</p>