title: Jackson JSON Java nested object and arrays
body: <p>I have an example nested json object like below : </p>
  
  <pre><code>{
  "payload": {
  "id": "1",
  "apiResp": {
    "apiRespDetails": {
      "report": {
        "reportId": "reportid1",
        "reportDetails": [
          {
            "code": "1",
            "rating": "good"
          },
          {
            "code": "2",
            "rating": "bad"
          },
          {
            "code": "3",
            "rating": "fair"
          }
        ]
       }
     }
    }
   }
  }
  </code></pre>
  
  <p>I only need the report object, I do not need any of its parent object details. What would be the best way to get just that using the Jackson API ?   </p>
  
  <p>I have created a Java Class called Report.java with fields reportId (String) and reportDetails(List of ReportDetail ) where ReportDetail is another class with String fields code , rating etc.  Do I need to use some Deserializer, JsonTreeParser mechanism?Thanks. </p>