Quote:
Originally Posted by pradeep View Post
Code: Javascript
var json = { "posts" : { "id":"152", "user":"Bob", "to":"Alice", "msg":"hell!" }
"posts" : { "id":"151", "user":"Alice", "to":"Bob", "msg":"hello!" }
"posts" : { "id":"147", "user":"Bob", "to":"Alice", "msg":"hey!" }
};

for(var i in json) {
    for(var j in json[i]) {
        // print
    }
}

please elaborate above method as the suggested way didn't work!!??
suppose I want to show output of
Code:
<li id="151">"Alice" to "Bob" : "hello!"</li>
then what would be the method!