I\'m trying to make a Django function for JSON serializing something and returning it in an HttpResponse object.
HttpResponse
def json_response(something):
In python 2.6 and higher there is a nice JSON library, which has many functions among which is json.dumps() which serializes an object into a string.
So you can do something like this:
import json print json.dumps({'howdy' : True })