HTTP Helpers

class fusionbox.http.JsonResponse(context, *args, **kwargs)[source]

Takes a jsonable object and returns a response with its encoded value. Also sets the Content-Type to json.

Usage:

def aview(request):
    return JsonResponse({'foo': 1})