JSFiddle - React, Tailwind, and code Playground

by Justin Breen

JavaScript

var json = [{
    "id" : "1", 
    "msg"   : "hi",
    "tid" : "2013-05-05 23:35",
    "fromWho": "[email protected]"
},
{
    "id" : "2", 
    "msg"   : "there",
    "tid" : "2013-05-05 23:45",
    "fromWho": "[email protected]"
}];

for(var i = 0; i < json.length; i++) {
    var obj = json[i];

    alert(obj.id);
}