title: Jackson - @JsonValue annotated field cannot be deserialized
body: <p>I have these two classes:</p>
  
  <p><code>Foo.java</code></p>
  
  <pre><code>@Data
  @NoArgsConstructor
  @AllArgsConstructor
  public class Foo {
  
      private ListWrapper data;
  
  }
  </code></pre>
  
  <p><code>ListWrapper.java</code></p>
  
  <pre><code>@Data
  @NoArgsConstructor
  @AllArgsConstructor
  public class ListWrapper {
  
      @JsonValue
      private List&lt;String&gt; value;
  
  }
  </code></pre>
  
  <p>I am using the following method to test serialization:</p>
  
  <pre><code>public void testSerialization() throws JsonProcessingException {
      Foo foo = new Foo();
      foo.setData(new ListWrapper(new ArrayList&lt;String&gt;() {
          {
              add("foo");
              add("bar");
          }
      }));
      ObjectMapper mapper = new ObjectMapper();
      System.out.println(mapper.writeValueAsString(foo));
  }
  </code></pre>
  
  <p>The output is <code>{"data":["foo","bar"]}</code>. Now I am trying to deserialize this json string with the following method:</p>
  
  <pre><code>public void testDeserialization() throws IOException {
      String json = "{\"data\":[\"foo\",\"bar\"]}";
      ObjectMapper mapper = new ObjectMapper();
      System.out.println(mapper.readValue(json, Foo.class));
  }
  </code></pre>
  
  <p>But this does not work. I am getting the following exception:</p>
  
  <pre><code>com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `ListWrapper` out of START_ARRAY token
   at [Source: (String)"{"data":["foo","bar"]}"; line: 1, column: 9] (through reference chain: Foo["data"])
  </code></pre>
  
  <p>I have no clue why this is happening. Can anyone give me a hint? I am using Jackson 2.9.9.</p>