

def dumps(obj, *args, **kwargs):
    'Helper function that wraps :class:`json.dumps`.\n\n    Recursive function that handles all BSON types including\n    :class:`~bson.binary.Binary` and :class:`~bson.code.Code`.\n\n    .. versionchanged:: 2.7\n       Preserves order when rendering SON, Timestamp, Code, Binary, and DBRef\n       instances.\n    '
    return json.dumps(_json_convert(obj), *args, **kwargs)

dataset/ETHPy150Open mongodb/mongo-python-driver/bson/json_util.py dumps/original