def json_without_bytes(jobj):
    # Create a JSON-compatible copy of the attributes for validation
    jobj = jobj.copy()
    for k, v in jobj.items():
        if isinstance(v, six.binary_type):
            jobj[k] = v.decode('utf8', 'replace')
    return jobj
An ugly hack.
dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/util.py/json_without_bytes