title: Deserialization with nested polymorphic objects via jakson Java
body: <p>I have a container for nested objects like: </p>
  
  <pre><code>class A {
    private Type type;// can message or invite 
    private Notification notification;
  </code></pre>
  
  <p>}</p>
  
  <p>and classes </p>
  
  <pre><code>abstract class Notification {}
  
  class Message extends Notification {}
  
  class Invite extends Notification {}
  </code></pre>
  
  <p>When I serialize List to JSON all works fine, but I can make deserialization with ObjectMapper because jackson doesn't know the the instance type of Notification, that are stored in <em>type</em> field. Question is it possible to deserialize with ObjectMapper?</p>