title: Converting circular structure to JSON Firebase
body: <p><a href="https://i.stack.imgur.com/BhQtp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BhQtp.png" alt="enter image description here"></a></p>
  
  <p>The above is the returned object from firebase and I do this:</p>
  
  <pre><code>JSON.stringify(data) // where data is the returned object
  </code></pre>
  
  <p>Then I get the error: <code>TypeError: Converting circular structure to JSON</code></p>
  
  <p>How to properly handle an object response like that from firebase?</p>
  
  <p>This <a href="https://stackoverflow.com/questions/20903504/how-to-solve-uncaught-typeerror-converting-circular-structure-to-json">answer</a> paints a picture of what is happening, however, in the case of firebase, how to go about it?</p>