Code: Javascript
var json = { "posts" : { "id":"152", "user":"Pankaj Patel", "to":"Pankaj Patel", "msg":"hell!" }
"posts" : { "id":"151", "user":"Pankaj Patel", "to":"Pankaj Patel", "msg":"hello!" }
"posts" : { "id":"147", "user":"Pankaj Patel", "to":"Pankaj Patel", "msg":"hey!" }
};
for(var i in json) {
for(var j in json[i]) {
// print
}
}