Reputation: 29720
I have the JSON:
{
"GetCommentsByPostResult": [
{
"CommentCreated": "\\/Date(1305736030505+0100)\\/",
"CommentText": "Comment 1"
},
{
"CommentCreated": "\\/Date(1305736030505+0100)\\/",
"CommentText": "Comment 2"
},
{
"CommentCreated": "\\/Date(1305736030505+0100)\\/",
"CommentText": "Comment 2"
}
]
}
And Im trying to iterate over it using this:
$.each(data.GetCommentsByPostResult, function (e) {
alert(e.CommentText);
});
But all im getting is 3 alert screens with 'undefined' in it....no idea why anyone know?
Upvotes: 0
Views: 166