Re: json serialization question

2011-05-27 Thread Ian Clelland
On Tue, May 24, 2011 at 8:36 AM, Sells, Fred wrote: > My code looks like this > > records = models.Residents.objects.extra( where=[], params=[...]) > data = serializers.serialize('json', records, ensure_ascii=False, > fields=('fname','lname', 'pt')) > return HttpResponse(data) > > After experi

json serialization question

2011-05-24 Thread Sells, Fred
I'm using AJAX, jquery and JSON for the first time, having used templates to render XML for Flex/Flash in all my previous Django work. My code looks like this records = models.Residents.objects.extra( where=[], params=[...]) data = serializers.serialize('json', records, ensure_ascii=False, fie