Why can't i loop through my json object using jquery?
- by Pandiya Chendur
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....