title: Correct approach when mapping JSON with a lot of unnecessary information to a Java object
body: <p>So I have this quite big JSON string with a lot of nesting which I receive as a response to a call to a REST API and I want to map it to an object in my java application (currently using Jackson for that purspose). The problem is, I need maybe 50% of the information provided in that JSON string and the rest is simply unnecessary. What is the correct approach when modelling the class the JSON string should be mapped to? Should I just create only the fields I need in my objects and tell the mapper to ignore the rest?</p>
  
  <p>And if so, what to do about the nesting? Let's say I need to get 1 field from but the construction looks like this:</p>
  
  <pre><code>{
     "abc":123,
     "bcd":"qwe",
     "cde":"asd",       
     "def":1,
     "obj":{          
        "av":861,
        "asdf":{
           "id":139204,                       
           "params":{
              "item":139070,
              "level":110
           }
      }
  }
  </code></pre>
  
  <p>And I need to get the "level" property - should I recreate all the nesting with some sort of wrappers or is there more efficient way to do this?</p>