title: Jackson: @JsonIdentityInfo Object instead of id
body: <p>Is there a way to influence the serialization process with @JsonIdentityInfo so that it inserts the whole object instead of referencing the id?</p>
  
  <pre><code>@Entity
  @JsonIdentityInfo(
          generator = ObjectIdGenerators.IntSequenceGenerator.class,
          property = "linkLabel")
  public class LinkLabel implements Serializable {
     //...
  }
  </code></pre>
  
  <p>So instead of referencing "otherObj" with id 1, Jackson should include the whole object.</p>
  
  <pre><code>{
      "objects": [{
              "id": 1,
              "otherObj": [{
                      "id": 1,
                      ...
                  }, {
                      "id": 3,
                      ...
                  }]
          },
              "id": 2,
              "otherObj": [1] &lt;-- referencing otherObj with id 1
      ]
  }
  </code></pre>
  
  <p>like here:</p>
  
  <pre><code>{
      "objects": [{
              "id": 1,
              "otherObj": [{
                      "id": 1,
                      ...
                  }, {
                      "id": 3,
                      ...
                  }]
          },
              "id": 2,
              "otherObj": [{
                      "id": 1,  &lt;-- desired format, whole object
                      ...
                  }]
      ]
  }
  </code></pre>
  
  <p>We have bidirectional references, so @JsonManagedReference and @JsonBackReference doesn't work properly. This behavior is described here (<a href="http://wiki.fasterxml.com/JacksonFeatureObjectIdentity" rel="noreferrer">http://wiki.fasterxml.com/JacksonFeatureObjectIdentity</a>).</p>