def request_to_json(headers, body):
    headers['Content-Type'] = 'application/json'
    body = json.dumps(body)
    return headers, body
Request callback to turn a request with a dict as the body into
dataset/ETHPy150Open RafeKettler/bind/bind/callbacks.py/request_to_json