def object2Json(obj):
    'convert object to json'
    d = {}
    d['__class__'] = obj.__class__.__name__
    d['__module__'] = obj.__module__
    d.update(obj.__dict__)
    return d
afb4197e751e8d3b50ac26c253eb019fab87c248
<mask token>

def object2Json(obj):
    """convert object to json"""
    d = {}
    d['__class__'] = obj.__class__.__name__
    d['__module__'] = obj.__module__
    d.update(obj.__dict__)
    return d

def object2Json(obj):
    'convert object to json'
    d = {}
    d['__class__'] = obj.__class__.__name__
    d['__module__'] = obj.__module__
    d.update(obj.__dict__)
    return d