Is there a way to control json serialization in django? Simple code below will return serialized object in json:
co = Collection.objects.all() c = serializer
def view( request): m_all = list(model.objects.all().values()) return HttpResponse(simplejson.dumps(m_all))
This should solve the problem. Using values() and converting to list should produce the result you wanted.