title: Cannot deserialize instance of <DataModel> out of START_OBJECT token
body: <p>I am facing with problem with Spring and Jackson. I was trying to fetch the input from <a href="https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&amp;maxradiuskm=2000.0&amp;latitude=30.21&amp;longitude=12.9" rel="nofollow noreferrer">this API</a>. I've created Java model using  <a href="http://www.jsonschema2pojo.org/" rel="nofollow noreferrer">http://www.jsonschema2pojo.org/</a></p>
  
  <p>The model is </p>
  
  <pre><code>
  package io.github.mat3e.earthquake.jsonObject;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
  
  import java.util.List;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonPropertyOrder({
      "type",
      "metadata",
      "features",
      "bbox"
  })
  public class DataModel {
  
      @JsonProperty("type")
      private String type;
      @JsonProperty("metadata")
      private Metadata metadata;
      @JsonProperty("features")
      private List&lt;Feature&gt; features = null;
      @JsonProperty("bbox")
      private List&lt;Double&gt; bbox = null;
  
      @JsonProperty("type")
      public String getType() {
          return type;
      }
  
      @JsonProperty("type")
      public void setType(String type) {
          this.type = type;
      }
  
      @JsonProperty("metadata")
      public Metadata getMetadata() {
          return metadata;
      }
  
      @JsonProperty("metadata")
      public void setMetadata(Metadata metadata) {
          this.metadata = metadata;
      }
  
      @JsonProperty("features")
      public List&lt;Feature&gt; getFeatures() {
          return features;
      }
  
      @JsonProperty("features")
      public void setFeatures(List&lt;Feature&gt; features) {
          this.features = features;
      }
  
      @JsonProperty("bbox")
      public List&lt;Double&gt; getBbox() {
          return bbox;
      }
  
      @JsonProperty("bbox")
      public void setBbox(List&lt;Double&gt; bbox) {
          this.bbox = bbox;
      }
  
  }
  
  </code></pre>
  
  <p>Of course all dependencies (subclasses are appended in the same strture).</p>
  
  <p>Code to fetch data from external API is;</p>
  
  <pre><code>@GetMapping("/3")
      public String getCostam() {
          RestTemplate rest = new RestTemplate();
  
          ResponseEntity&lt;DataModel[]&gt; responseEntity = restTemplate.getForEntity(url2, DataModel[].class);
          Object[] objects = responseEntity.getBody();
          MediaType contentType = responseEntity.getHeaders().getContentType();
          HttpStatus statusCode = responseEntity.getStatusCode();
          return statusCode.toString();
  
      }
  </code></pre>
  
  <p>When I run the code and I am trying to get for adress "api/3" following error occurs:</p>
  
  <pre><code>com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `[Lio.github.DataModel;` out of START_OBJECT token
   at [Source: (PushbackInputStream); line: 1, column: 1]
  </code></pre>