title: How to map a value in an array to a property
body: <p>I am trying to parse a json and get hold of value inside an array -</p>
  <pre><code> {
    &quot;hits&quot;: {
      &quot;hits&quot;: [
        {
            &quot;name&quot;: [
              {
                &quot;family&quot;: &quot;Doe&quot;,
                &quot;given&quot;: &quot;Jon&quot;,
                &quot;middle&quot;: &quot;Smith&quot;,
                &quot;use&quot;: &quot;Commercial&quot;
              }
            ]
        }
      ]
    }
  }
  </code></pre>
  <p>Below is my pojo</p>
  <pre><code>private String fstNm;
  
   public String getFstNm() { return fstNm; }
  
      @JsonProperty(&quot;name&quot;)
      public void setFstNm(Map&lt;String,Object&gt;name) {
          this.fstNm = (String) name.get(&quot;given&quot;);
  
      }
  </code></pre>
  <p>But for some reason it is not working and i am getting <code>Cannot deserialize instance of java.lang.String</code> out of START_OBJECT token`</p>
  <p>I would appreciate any help.</p>