title: Resolve circular references from JSON object
body: <p>If I have a serialized JSON from json.net like so:</p>
  
  <pre><code>User:{id:1,{Foo{id:1,prop:1}},
  FooList{$ref: "1",Foo{id:2,prop:13}}
  </code></pre>
  
  <p>I want to have knockout output a foreach over FooList but I am not sure how to proceed because the $ref things could throw things.</p>
  
  <p>I'm thinking the solution would be to somehow force all the Foos to be rendered in the FooList by not using:</p>
  
  <pre><code>PreserveReferencesHandling = PreserveReferencesHandling.Objects
  </code></pre>
  
  <p>but that seems wasteful..</p>