# get rid of mimetype
kwargs.pop('mimetype', None)
data = json.dumps(data, cls=ExtendedEncoder)
# get rid of mimetype
kwargs.pop('mimetype', None)
data = json.dumps(data, cls=ExtendedEncoder)
super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)
super(JSONResponse, self).__init__(data, mimetype="application/json", **kwargs)