title: Can not deserialize instance of SaleListDTO out of START_ARRAY token
body: <p>The issue is i'm getting this error.</p>
  
  <p>I have to simulate rest service call because it's being developed now by another team.</p>
  
  <pre><code>com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of com.egencia.service.invoiceaggregator.cache.SaleListDTO out of START_ARRAY token
  </code></pre>
  
  <p>Here is my jackson mapper bean</p>
  
  <pre><code>Jackson2ObjectMapperBuilder
                  .json()
                  .featuresToEnable(DeserializationFeature.UNWRAP_ROOT_VALUE, DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)                                    .serializationInclusion(JsonInclude.Include.NON_NULL)
                  .serializationInclusion(JsonInclude.Include.NON_EMPTY)
                  .failOnUnknownProperties(false)
                  .build();
  @JsonRootName("list")
  public class SaleListDTO {
      private SaleDTO[] list;
      public SaleDTO[] getList() {
          return list;
      }
      public void setList(SaleDTO[] list) {
          this.list = list;
      }
  }
  </code></pre>
  
  <p>Here is the JsON file</p>
  
  <pre><code>{"list": [
      {
          "id": 111111,
          "currency": "EUR",
          "country": "ITA",
          "name": "Italy",
          "code": "IT"
      },...
  ]}
  </code></pre>
  
  <p>I have tested so many combinations but in vain. please help </p>