@defer.inlineCallbacks
    def getJson(self, url, method='GET', headers={}, data=None, socket=None):
        if not 'Content-Type' in headers:
            headers['Content-Type'] = ['application/json']

        body = yield self.getBody(url, method, headers, data, socket)
        
        defer.returnValue(json.loads(body))
Fetch a JSON result via HTTP
dataset/ETHPy150Open calston/tensor/tensor/utils.py/HTTPRequest.getJson