title: How to have Jackson deserialize a cyclical graph that has been run through JSOG.stringify(myCyclicalGraph)
body: <p>I am currently using the this Jackson <a href="https://github.com/jsog/jsog-jackson" rel="nofollow">plugin</a></p>
  
  <p>Which serialized my cyclical graphs. Then on the client I use the <a href="https://github.com/jsog/jsog" rel="nofollow">JSOG</a> to decode the {@ref} objects like this:</p>
  
  <pre><code>JSOG.decode(data)
  </code></pre>
  
  <p>The problem comes when I am trying to send the json back up to the server. If I don't do anything to the data I get a "Maximum call stack size exceeded", obviously because my js object is cyclical. I try using:</p>
  
  <pre><code>JSOG.stringify(data);
  </code></pre>
  
  <p>But then Jackson chokes on all the @id and @refs:</p>
  
  <pre><code>com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "@id"
  </code></pre>
  
  <p>Has any one figured out how to do this?</p>