def dumps(value):
    try:
        return json.dumps(value)
    except __HOLE__:
        pass
    return json.dumps(to_primitive(value))
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/utils.py/dumps