title: Jackson JSON mapping of superclass value
body: <p>I am using Jackson 1.8.3 in a Spring application to map Java Objects to JSON.</p>
  
  <p>One of my Java Class (<code>Child</code>) extends an super class (<code>Parent</code>) that is part of an Libary, so I am not able to modify it. (Especially I am not able to add annotations.)</p>
  
  <p>I am using <code>@JsonAutoDetect(JsonMethod.NONE)</code> because I need only a small set of fields from the object, instead I am using <code>@JsonProperty</code>.</p>
  
  <pre><code>class Parent {
    public long getId(){...};
    ...
  }
  
  @JsonAutoDetect(JsonMethod.NONE)
  class Child extends Parent {
  
      @JsonProperty
      private String title;
  }
  </code></pre>
  
  <p><strong>But one of the fields I need is an field <code>id</code> from the superclass, but I don't know how to tell Jackson to pay attention to this field, without modifying the parent class (because I can not modify it).</strong></p>