title: Parse JSON file containing multiple objects
body: <p>I have a JSON file that contains multiple objects of the same structure that look like this:</p>
  
  <pre><code>{
     "id": "123",
     "type": "alpha"
  }
  {
     "id": "321",
     "type": "beta"
  }
  </code></pre>
  
  <p>I'm using node.js to read the file.</p>
  
  <pre><code>fs.readFile(__dirname + "/filename.json", 'utf8', function(err, data) {
  var content = JSON.parse(JSON.stringify(data));
  </code></pre>
  
  <p>If I do a console.log(content) things look good.  I see the content of the json file.  I'm trying to iterate over each object but I'm not sure how to do that.  I've tried using </p>
  
  <pre><code>for(var doc in content)
  </code></pre>
  
  <p>but the doc isn't each object as I was expecting.  How do I loop over the content to get each object in a json format so that I can parse it?</p>