title: Facing JSON parse issue, Cannot deserialize value of type `java.lang.String` from Array value jackson.databind.exc.MismatchedInputException
body: <p>Facing a JSON parse issue when trying to include array in my postman request:</p>
  <pre><code>{
      &quot;id&quot; : &quot;0&quot;,
      &quot;number&quot;:[&quot;2222&quot;, &quot;3333&quot;]
  }
  </code></pre>
  <p>pojo:</p>
  <pre><code>public class User {
      @Getter @Setter private String      id;
      @Getter @Setter  private String[]   number;
  
      //i've also tried these:
      @Getter @Setter  private List&lt;String&gt;   number;
      @Getter @Setter  private ArrayList&lt;String&gt;  number;
  }
  </code></pre>
  <p>Controller:</p>
  <pre><code>@PostMapping(&quot;/user&quot;)
      public ResponseEntity&lt;Object&gt; getUser(@RequestBody(required=true)User user) {
  </code></pre>
  <p>Trace:</p>
  <pre><code>  &quot;trace&quot;: &quot;org.springframework.http.converter.HttpMessageNotReadableException: 
  JSON parse error: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`); 
  nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: 
  Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)
   at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 3, column: 13] 
  </code></pre>