def __init__(self,content='',json_opts={},mimetype="application/json",*args,**kwargs):
        if content:
            content = serialize_to_json(content,**json_opts)
        else:
            content = serialize_to_json([],**json_opts)
        super(JSONResponse,self).__init__(content,mimetype,*args,**kwargs)
This returns a object that we send as json content using 
dataset/ETHPy150Open jpic/playlistnow.fm/apps/response.py/JSONResponse.__init__