Hi All, I am having problem retrieving object in javascript.
django function: def function cursor = db.cursor(cursorclass=MySQLdb.cursors.DictCursor) sql = "select * from .." dict = cursor.fetchall() return HttpResponse(simplejson.dumps(dict), mimetype='application/ json') javacript code: function getuserinfo() { $.getJSON("/path", function(data) { alert(data['location']); }); } the object is getting serialized properly, but in javascript alert(data['location']); always returns "undefined". Any ideas? thanks ashy -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.