title: Jackson dynamic property names
body: <p>I would like serialize an object such that one of the fields will be named differently based on the type of the field. For example:</p>
  
  <pre><code>public class Response {
      private Status status;
      private String error;
      private Object data;
          [ getters, setters ]
      }
  </code></pre>
  
  <p>Here, I would like the field <code>data</code> to be serialized to something like <code>data.getClass.getName()</code> instead of always having a field called <code>data</code> which contains a different type depending on the situation.</p>
  
  <p>How might I achieve such a trick using Jackson?</p>