title: Javascript looping through a JSON string
body: <p>Ok, a little new to JSON format..</p>
  
  <p>I have the following JSON string returned from an AJAX call, which firebug actually displays in a tree quite nicely.. however I can't seem to be able to work out how to loop through the content... </p>
  
  <pre><code>{"data":{"item":[{"@id":"7","fromMemberID":"7","FromMember":"david","notificationsType":"event","notificationsDesc":"A new event (Test Event Thursday, 16 September 2010) has been created.","notificationsDate":"16 Sep 2010","notificationsTime":"00:02:18"},{"@id":"8","fromMemberID":"7","FromMember":"david","notificationsType":"event","notificationsDesc":"A new event (Test Event Thursday, 16 September 2010) has been created.","notificationsDate":"16 Sep 2010","notificationsTime":"08:26:24"}]}}
  </code></pre>
  
  <p>I have tried to say get a count of items.. alert(data.item.length);
  or a loop:</p>
  
  <pre><code>for(i=0; i&lt;data.item.length; i++)
  {
      alert(data.item[i].FromMember);
  }
  </code></pre>
  
  <p>obviously missing something fundemental...</p>
  
  <p>Any ideas??</p>