title: Jackson Custom Deserialization for Mapping Class Name String to Actual Class Definition
body: <p>I am using Jackson custom Deserializers to parse a JSON file. In this file there are bunch of entries with key "class" and value the name of the class (without the full package name). The deserializer knows a bunch of predefined (hard) paths to search for the any class. The custom deserializer should look for the keyword "class" (while its parsing the JSON) and then based on the value (the class name string), search in the predefined paths and instantiate an object with the matching class name. </p>
  
  <p>I have implemented the Jackson <code>Deserializers</code> interface and have overridden a bunch of callbacks: <code>findBeanDeserializer</code>, <code>findBeanDeserializer</code>, <code>findEnumDeserializer</code>...
  However this does not let me catch the event when the  parser sees the <code>class:ClassName</code> key-value pair and act differently based on that.</p>
  
  <p>Any help or pointers will be deeply appreciated.</p>
  
  <p>An example JSON</p>
  
  <pre><code>{
      "class": "X",
      "fieldName1": {
          "class": "Y",
      }
      ...
  }
  </code></pre>