(obj)
return json.dumps(obj, cls=CJsonEncoder)
py字典、数据转成json字符转
py字典、数据转成json字符转
py字典、数据转成json字符转
def object_2_json(obj):
    '''
    py字典、数据转成json字符转
    '''
    if obj is None:
        obj = {}
    return json.dumps(obj, cls=CJsonEncoder)
def object_2_json ( obj ) : if obj is None : obj = { } return json . dumps ( obj , cls = CJsonEncoder )