We are facing a strange issue with json. After we assign the result to a variable - res, then try to print the values...
for(var j in res["list"]) {
alert(res['list'][j]['name']);// some of the values are coming as "undefined"
}
output:
ranjith
sandeep
nikhil
undefined
undefined
undefined
What could be the reason for this?
Thanks and regards,
sandeep@uhuroo.com
www.uhuroo.com [ Uhuroo is a web application that provides a smart and secure way of collaborating on documents with distributed teams ]