title: Jackson deserialize child JSON to parent attribute
body: <p>This is my requirement. I have below POJO.</p>
  
  <pre><code>class Car {
    private String brandName;
    private String color;
    private Model model;
  }
  
  class Model {
   private String modelName;
   private String year;
  }
  </code></pre>
  
  <p>If I get input json like below, then it should be de-serialized and mapped to both classes.</p>
  
  <pre><code>String json = "{\"brandName\" : \"Toyoto\", \"color\" : \"Silver\", \"model\" : {\"modelName\": \"Corolla\", \"year\": \"2019\"}}"
  ObjectMapper mapper = new ObjectMapper();
  Car car = mapper.readValue(json, Car.class);
  assertEquals("Corolla", car.getModel().getModelName()); 
  </code></pre>
  
  <p>This case is fine.</p>
  
  <p>But if I pass child json, that also should work without changing mapping class.</p>
  
  <pre><code>String json = "{\"modelName\": \"Corolla\", \"year\": \"2019\"}"
  ObjectMapper mapper = new ObjectMapper();
  Car car = mapper.readValue(json, Car.class);
  assertEquals("Corolla", car.getModel().getModelName()); 
  </code></pre>
  
  <p>Any idea to solve this problem</p>