title: Cannot deserialize value of type `[Ljava.lang.String;` from Object value (token `JsonToken.START_OBJECT`)
body: <p>I am trying to parse the following JSON to POJO, specifically the payload I want to extract as String[] or List of String without losing the JSON format.</p>
  <pre><code>{
    &quot;payLoad&quot;: [
      {
        &quot;id&quot;: 1,
        &quot;userName&quot;: null,
        &quot;arName&quot;: &quot;A1&quot;,
        &quot;areas&quot;: []
      },
      {
        &quot;id&quot;: 2,
        &quot;userName&quot;: &quot;alpha2&quot;,
        &quot;arName&quot;: &quot;A2&quot;,
        &quot;areas&quot;: []
      }
    ],
    &quot;count&quot;: 2,
    &quot;respCode&quot;: 200
  }
  </code></pre>
  <p>Here is the POJO that I am using -</p>
  <pre><code>public class Response {
  
      @JsonProperty(&quot;count&quot;)
      private int totalCount;
  
      @JsonProperty(&quot;respCode&quot;)
      private int responseCode;
  
      @JsonProperty(&quot;payLoad&quot;)
      @JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
      private String[] transactionsList;
  
      public String[] getTransactionsList() {
          return transactionsList;
      }
  
      public void setTransactionsList(String[] transactionsList) {
          this.transactionsList = transactionsList;
      }
  ..
  }
  </code></pre>
  <p>This is method I am using with springboot to parse it automatically to</p>
  <pre><code>public void transactionsReceived() throws JsonProcessingException {
      ObjectMapper objectMapper = new ObjectMapper();
      Response responseRcvd = objectMapper.readValue(jsonString, Response.class); 
  }
  </code></pre>
  <p>Here is an error I am getting -</p>
  <pre><code>    Exception in thread &quot;main&quot; com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `[Ljava.lang.String;` from Object value (token `JsonToken.START_OBJECT`)
   at [Source: (String)&quot;{&quot;payLoad&quot;: [{&quot;id&quot;: 1,&quot;userName&quot;: null,&quot;arName&quot;: &quot;A1&quot;,&quot;areas&quot;: []},{&quot;id&quot;: 2,&quot;userName&quot;: &quot;alpha2&quot;,&quot;arName&quot;: &quot;A2&quot;,&quot;areas&quot;: []}],&quot;count&quot;: 2,&quot;respCode&quot;: 200}&quot;; line: 1, column: 14] (through reference chain: com.example.demo.model.Response[&quot;payLoad&quot;]-&gt;java.lang.Object[][0])
      at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1741)..
  </code></pre>