title: Loop through JSON data in jQuery
body: <p>Here is my JSON data:</p>
  
  <pre><code>{
      "comments": [{
          "id": "1",
          "message": "Finish as soon as possible! Cibai!",
          "task_id": "1",
          "user_id": "1",
          "date_created": "2015-02-06 00:00:00.000000"
      }, {
          "id": "19",
          "message": "Another message",
          "task_id": "1",
          "user_id": "1",
          "date_created": "2015-02-10 00:00:00.000000"
      }, {
          "id": "20",
          "message": "Comment about the header",
          "task_id": "1",
          "user_id": "1",
          "date_created": "2015-02-09 00:00:00.000000"
      }],
          "status": true
  }
  </code></pre>
  
  <p>Here is my jQuery, problem is Iam getting null in the alert:</p>
  
  <pre><code>var ids = [];
  $.each(e, function(i, item) {
      ids.push(item.id);
  });
  alert(JSON.stringify(ids));
  </code></pre>
  
  <p>Thanks</p>