title: spring boot json to model conversion error
body: <pre><code>{
    &quot;cust&quot;:&quot;A&quot;,
    &quot;del&quot;:[{
      &quot;type1&quot;: &quot;id&quot;,
      &quot;type2&quot;:[{
          &quot;name&quot;:&quot;address&quot;
      }]
  }]
  </code></pre>
  <p>I have converted this json to below model class</p>
  <pre><code>public class Del{
      public String type1;
      public JSONArray type2; // &quot;type2&quot; has dynamic key and value which are string, it can have &quot;name&quot;:&quot;address&quot;,&quot;id&quot;:&quot;sal&quot; pair etc dynamically
  }
  
  public class Root{
      public String cust;
      public List&lt;Del&gt; del;
  }
  </code></pre>
  <p>But, this mapping is showing error. how to fetch key and value inside &quot;type2&quot; in dynamic way where attribute names are not fixed.</p>