title: How can I print a circular structure in a JSON-like format?
body: <p>I have a big object I want to convert to JSON and send. However it has circular structure. I want to toss whatever circular references exist and send whatever can be stringified. How do I do that?</p>
  
  <p>Thanks.</p>
  
  <pre><code>var obj = {
    a: "foo",
    b: obj
  }
  </code></pre>
  
  <p>I want to stringify obj into:</p>
  
  <pre><code>{"a":"foo"}
  </code></pre>