def _request_json(self, url, params, method='GET'):
        '''Return a json response from a request.'''
        res = self._request(url, params, method=method)
        try:
            return res.json()
        except __HOLE__ as err:
            self.log.debug(res.text)
            raise DataProviderError("json request: %s" % err.message)
dataset/ETHPy150Open YetAnotherNerd/whatlastgenre/wlg/dataprovider.py/DataProvider._request_json