Why can't i loop through my json object using jquery?
Posted
by Pandiya Chendur
on Stack Overflow
See other posts from Stack Overflow
or by Pandiya Chendur
Published on 2010-03-30T04:56:00Z
Indexed on
2010/03/30
5:03 UTC
Read the original article
Hit count: 313
I am using jquery to loop through json object... But some how it doesn't seem to work...
Here is my code,
success: function(jsonObj) {
alert(jsonObj);
for (var i = jsonObj.length - 1; i >= 0; i--) {
var employee = jsonObj[i];
alert(employee.Emp_Name);
When alerted my jsonObj
i got [object Object]
but when i alerted jsonObj.length
it showed undefined
any suggestion....
© Stack Overflow or respective owner