jquery - json returning list<customers> -


i'm returning list<customer> json result in controller. in client script can see customers fine being returned.

can somehow use forin loop? because when try says var undefined.

for (var in customers) { alert(i.customername); } 

try:

for (var in customers) {     alert(customers[i].customername); } 

Comments