title: serialize json array into java objects
body: <p>I have a JSON array like as shown below which I need to serialize it to my class. I am using Jackson in my project.</p>
  
  <pre><code>[
      {
          "clientId": "111",
          "clientName": "mask",
          "clientKey": "abc1",
          "clientValue": {}
      },
      {
          "clientId": "111",
          "clientName": "mask",
          "clientKey": "abc2",
          "clientValue": {}
      }
  ]
  </code></pre>
  
  <p>In above JSON array, <code>clientValue</code> will have another JSON object in it. How can I serialize my above JSON array into my java class using Jackson?</p>
  
  <pre><code>public class DataRequest {
      @JsonProperty("clientId")
      private String clientId;
  
      @JsonProperty("clientName")
      private int clientName;
  
      @JsonProperty("clientKey")
      private String clientKey;
  
      @JsonProperty("clientValue")
      private Map&lt;String, Object&gt; clientValue;
  
      //getters and setters
  }
  </code></pre>
  
  <p>I have not used jackson before so I am not sure how can I use it to serialize my JSON array into Java objects? I am using jackson annotation here to serialize stuff but not sure what will be my next step?</p>