

def _send_json(self, path, json_data=None, method='GET', params=None):
    headers = {
        'Content-Type': 'application/json',
        'accept': 'application/json',
    }
    if (json_data is None):
        data = None
    else:
        data = json.dumps(json_data)
    r = self._send(path, data=data, headers=headers, method=method, params=params)
    if r.text:
        return json.loads(r.text)

dataset/ETHPy150Open stardust85/repositorytools/repositorytools/lib/repository.py NexusRepositoryClient._send_json/original