title: knockoutjs - debug with circular reference in view model
body: <p>The view model has a circular reference, by design, making the use of <code>&lt;pre data-bind="text: ko.toJSON($data)"&gt;&lt;/pre&gt;</code> for debugging to throw: </p>
  
  <pre><code>Unable to parse bindings.
  Message: TypeError: Converting circular structure to JSON;
  Bindings value: text: ko.toJSON($data) 
  </code></pre>
  
  <p>Is there a way to work around this?</p>