'Object constructor, converts data (if provided) to JSON'

def __init__(self, data=None):

    content = json.dumps(data, cls=i4xEncoder)
    super(JsonResponse, self).__init__(content, content_type='application/json;    charset=utf-8')
