title: I can't read the _id property of a JSON object stored in MongoDB (MongoLab service)
body: <p>I have a document on a mongodb on Heroku. Each object in the document has a system generated object id in the form of </p>
  
  <pre><code>"_id": {
          "$oid": "xxxxxxxxxxxxxxxxxxxxxxxx"
      }
  </code></pre>
  
  <p>When I make a query and get the response from the server, I stringify the response using JSON.stringify and I log the object on the server console. When I do this the following gets logged:</p>
  
  <pre><code>this is the response: [{"creator":"al","what[place]":"home","what[time [start]":"22:00","what[time][end]":"","what[details]":"","who[]":["joe","kay","mau"],"_id":"xxxxxxxxxxxxxxxxxxxxxxxx"}]
  </code></pre>
  
  <p>Right after the full object gets logged, I try to log the id to make sure I can access it... I want to then pass the id to a different object so that I can have a reference to the logged object.</p>
  
  <p>I have this right now:</p>
  
  <pre><code>var stringyfied = JSON.stringify(res);
  console.log("this is the response: " + stringyfied);
  console.log("id: " + stringyfied._id);
  </code></pre>
  
  <p>but when the item is logged I get</p>
  
  <pre><code>id: undefined
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>id: "xxxxxxxxxxxxxxxxxxxxxxxx"
  </code></pre>
  
  <p>No matter how I try to access the _id property, I keep getting undefined even though it get printed with the console.log for the full object</p>
  
  <p>I've tried:</p>
  
  <pre><code>stringyfied.id
  stringyfied["_id"]
  stringyfied["id"]
  stringyfied._id.$oid
  stringyfied.$oid
  </code></pre>