title: Json Mapping Exception can not deserialize instance out of START_ARRAY token
body: <p>I'm trying to parse my json request to my model. I don't know, what is wrong in this code. Syntax of json looks correct and annotations on Java model also. I don't know why I'm getting error like:</p>
  <pre><code>Caused by: org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of ParametersType out of START_ARRAY token
  (through reference chain: Document[&quot;parameters&quot;])
  </code></pre>
  <p>Java model:</p>
  <pre><code>@JsonIgnoreProperties( ignoreUnknown = true )
  public class Document {
  
     @XmlElement( required = true )
     @JsonProperty( &quot;templateId&quot; )
     protected String templateId;
  
     @JsonProperty( &quot;parameters&quot; )
     @XmlElement( required = true )
     protected ParametersType parameters;
  
     @JsonProperty( &quot;documentFormat&quot; )
     @XmlElement( required = true )
     protected DocumentFormatType documentFormat;
      
  ...}
  
  @JsonIgnoreProperties( ignoreUnknown = true )
  public class ParametersType {
  
      @JsonProperty( &quot;parameter&quot; )
      protected List&lt;ParameterType&gt; parameter;
       
  ...}
  
  @JsonIgnoreProperties( ignoreUnknown = true )
  public class ParameterType {
  
      @XmlElement( required = true )
      @JsonProperty( &quot;key&quot; )
      protected String key;
  
      @XmlElement( required = true )
      @JsonProperty( &quot;value&quot; )
      @XmlSchemaType( name = &quot;anySimpleType&quot; )
      protected Object value;
  
      @JsonProperty( &quot;type&quot; )
      @XmlElement( required = true, defaultValue = &quot;STRING_TYPE&quot; )
      protected ParamType type;
  
  ....}
  </code></pre>
  <p>Json code:</p>
  <pre><code>{
      &quot;templateId&quot;: &quot;123&quot;,
      &quot;parameters&quot;: [
          {
              &quot;parameter&quot;: [
                  {
                      &quot;key&quot;: &quot;id&quot;,
                      &quot;value&quot;: &quot;1&quot;,
                      &quot;type&quot;: &quot;STRING_TYPE&quot;
                  },
                  {
                      &quot;key&quot;: &quot;id2&quot;,
                      &quot;value&quot;: &quot;12&quot;,
                      &quot;type&quot;: &quot;STRING_TYPE&quot;
                  }
              ]
          }
      ],
      &quot;documentFormat&quot;: &quot;PDF&quot;
  }
  </code></pre>