Hello everybody, I am using Dajaxice to get my data from DB to my template.
function getParking_callBack(data){ if(data!='DAJAXICE_EXCEPTION'){ return data; } else{ alert("error") ; } } def getParking(request): list = [] data = Parking.objects.all() for d in data: odpoved = {} odpoved['name'] = d.name odpoved['x'] = d.gps.x odpoved['y'] = d.gps.y list.append(odpoved) return simplejson.dumps({'data': list}) This is OK it returns what I want, but here is problem: I have this on console of firebux: getParking_callBack({"data": [{"y": 49.830522574995236, "x": 18.264255523681641, "name": "ostrava centrum"}, {"y": 49.830522574995236, "x": 18.264255523681641, "name": "Ostrava Centrum"}]}) This is nice, but I don't know how to parse object from that variable. Please help me. Thanks so much for your help. Alex -- 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.