title: Deserialize JSON array to a single Java object with Jackson
body: <p>The idea is that I'd like to convert a JSON array <code>["foo", "bar"]</code> into a Java object so I need to map each array element to property by index.</p>
  
  <p>Suppose I have the following JSON:</p>
  
  <pre><code>{
    "persons": [
      [
        "John",
        "Doe"
      ],
      [
        "Jane",
        "Doe"
      ]
    ]
  }
  </code></pre>
  
  <p>As you can see each person is just an array where the first name is an element with index 0 and the last name is an element with index 1.</p>
  
  <p>I would like to deserialize it to <code>List&lt;Person&gt;</code>.
  I use mapper as follows:</p>
  
  <pre><code>mapper.getTypeFactory().constructCollectionType(List.class, Person.class)
  </code></pre>
  
  <p>where <code>Person.class</code> is:</p>
  
  <pre><code>public class Person {
      public final String firstName;
      public final String lastName;
  
      @JsonCreator
      public Person(@JsonProperty() String firstName, @JsonProperty String lastName) {
          this.firstName = firstName;
          this.lastName = lastName;
      }
  }
  </code></pre>
  
  <p>I was wondering if I can somehow specify array index as <code>@JsonProperty</code> argument instead of it's key name?</p>