title: Parse Json array init single object in Spring boot Rest Controller
body: <p>All I need some help to parse the object on the class base.
  I have a list of Imp object. i don't want it map all to the class and create the all object. <strong>I need only the First object of the Imp</strong> in my RtbRequest class.</p>
  
  <p><strong>Reason:-</strong> why i need to do like that. In imp json <b>user</b> send the non-number of imp object's in list and required on one object. i'd want to parse all. Is this possible</p>
  
  <p>My Pojo Class</p>
  
  <pre><code>@JsonInclude(JsonInclude.Include.NON_NULL)
  public class RtbRequest {
  
     // number of attribute
      private Imp imp;
  
      public void setImp(Imp imp) {
          this.imp = imp;
      }
  
  }
  @JsonInclude(JsonInclude.Include.NON_NULL)
  public class Imp {
  
     // number of attribute
     @JsonIgnore
     private Map&lt;String, String&gt; impMap = new HashMap&lt;&gt;();
     private String id;
     private Double bidfloor;
      //final-map
      public void setId(String id) {
          log.info("set--id--rtb--Imp");
          this.id = id;
          impMap.put("impid", getId());
      }
  
  
  }
  </code></pre>
  
  <p>My Json Object</p>
  
  <pre><code>{
      "id": "ded06290-f586-45c6-bbcb-015adba03e39",
      "imp": [{
              "id": "1",
              "video": {
                  "linearity": 1,
                  "maxduration": 120,
                  "protocols": [2, 5, 3, 6],
                  "w": 1280,
                  "h": 720,
                  "startdelay": 0,
                  "skip": 1,
                  "sequence": 1,
                  "playbackmethod": [1, 2, 3],
                  "api": [2]
              },
              "bidfloor": 0.0,
              "secure": 1
  
          },
          {
              "id": "2",
              "video": {
                  "linearity": 1,
                  "maxduration": 120,
                  "protocols": [2, 5, 3, 6],
                  "w": 1280,
                  "h": 720,
                  "startdelay": 0,
                  "skip": 1,
                  "sequence": 1,
                  "playbackmethod": [1, 2, 3],
                  "api": [2]
              },
              "bidfloor": 0.0,
              "secure": 1
          }
      ]
  
  }
  </code></pre>
  
  <p>My RestController</p>
  
  <pre><code>@RequestMapping(value= { "/request/{partner}"}, method = RequestMethod.POST)
  public Map&lt;String, String&gt; getRtbResponse(@PathVariable String partner, @RequestBody RtbRequest request) {}
  </code></pre>