For big chunks of data we should use a StreamingHttpResponse rather than HttpResponse - generating a string with the full response at once using json.dumps may lead to a Memory Error, as it does in questionnaire API.
note: bson.json_utils does not support iterator-based dumping and json does not support dumping ObjectIds from mongo.