Mootools Request.JSON解码

| 我是mootools的初学者,任何人都可以帮助我弄清楚如何有效地解码JSON中的每一个喊声以登录控制台。
        var shoutsRequest = new Request.JSON(
            {
                url: this.url,
                onSuccess: function(shouts)
                {
                    console.log(JSON.decode(shouts));
                },
                onError: function(text, error)
                {
                    console.log(text)
                }
            }
        ).get();
这是JSON。
[
    {id:\"1\", username:\"codyrob\", shout:\"This is a test.\", time:\"May 30, 3:20 pm\"}, 
    {id:\"2\", username:\"codyrob\", shout:\"This is a test.\", time:\"May 30, 3:20 pm\"}, 
    {id:\"3\", username:\"codyrob\", shout:\"This is a test.\", time:\"May 30, 3:20 pm\"}, 
    {id:\"4\", username:\"codyrob\", shout:\"This is a test.\", time:\"May 30, 3:20 pm\"}, 
    {id:\"5\", username:\"codyrob\", shout:\"This is a test.\", time:\"May 30, 3:20 pm}
]
    
已邀请:
        看起来像一个包含对象[{},{},{}]的数组,因此您可以遍历该数组 http://jsfiddle.net/3qnJ2/ http://mootools.net/docs/core/Types/Array#Array:Array-每个     

要回复问题请先登录注册