title: Jackson not encoding the same object twice
body: <p>In my project (ComiXed) we have the feature of tracking metadata changes to comics using an audit log. This feature works well, creating a new audit log entry each time any comic is updated.</p>
  <p>The problem we're hitting is when we fetch that list of audit log entries. Since a comic can be updated for than one, it can potentially show up multiple times in the audit log. When this happens, Jackson will property properly encode a comic the first time it encounters. But ever subsequent time it only encodes the id of the comic and nothing else.</p>
  <p>Here is a sample of the data being returned:</p>
  <pre><code>[{
      &quot;id&quot;: 116,
      &quot;comic&quot;: {
          &quot;id&quot;: 45,
          &quot;publisher&quot;: &quot;DC Comics&quot;,
          &quot;series&quot;: &quot;Detective Comics&quot;,
          &quot;volume&quot;: &quot;2011&quot;,
          &quot;issueNumber&quot;: &quot;48&quot;
      },
      &quot;metadataSource&quot;: {
          &quot;id&quot;: 1,
          &quot;name&quot;: &quot;ComicVine&quot;
      },
      &quot;referenceId&quot;: &quot;510474&quot;,
      &quot;createdOn&quot;: 1648411571989
  }, {
      &quot;id&quot;: 117,
      &quot;comic&quot;: 45,
      &quot;metadataSource&quot;: {
          &quot;id&quot;: 1,
          &quot;name&quot;: &quot;ComicVine&quot;
      },
      &quot;referenceId&quot;: &quot;510474&quot;,
      &quot;createdOn&quot;: 1648411642359
  }]
  </code></pre>
  <p>You can see that the first time the comic, whose id is 45, is encountered, it encodes the appropriate fields. But, the second time, Jackson only encodes the id and nothing else.</p>
  <p>I can't seem to find the right answer to this problem. Since the backend code loads the entries as a list where each entry references its comic, I don't want to have to pull out the comics into a separate piece, and then reassemble the list on the browser side.</p>
  <p>Any ideas on how to get Jackson to properly marshal the same object more than once in one payload?</p>