For even greater flexibility it would be great to have a possibility to postprocess of result before converting to JSON. For example I would just before HttpResponse call:
result = self.postprocess(ac_name, query, result)
By default this method would only return result. But by subclassing it would be possible to do a lot more.