good = {
'node': {
'type': 'activity',
'id': 'nG6CFOqb4dQq',
'diagramId': '4wwTVGk0mPhGtfDI',
'renderKey': 'activity',
'x': 180,
'y': 200,
'width': 100,
'height': 60,
'angle': 0,
'attrs': {
'body': {
'fill': 'none',
'stroke': 'none',
'refWidth': '100%',
'refHeight': '100%'
},
'fo': {
'refWidth': '100%',
'refHeight': '100%'
},
'label': {
'fontSize': 14,
'fill': '#333',
'refX': '50%',
'refY': '50%',
'textAnchor': 'middle',
'textVerticalAnchor': 'middle'
},
'shapeText': {
'verticalAlign': 'middle',
'textAlign': 'center',
'fill': '#000000',
'fontFamily': '宋体',
'fontSize': 12,
'lineHeight': 1.2,
'text': '活动',
'fontWeight': 'normal'
},
'shapeStyle': {
'strokeWidth': 1,
'fill': {
'startColor': '#89BCFF',
'endColor': '#C0DCFF',
'direction': 'to bottom'
},
'stroke': '#000000',
'strokeDasharray': '',
'3dEffect': False
}
},
'extraProps': {},
'ports': {
'items': [{
'group': 'top',
'id': 'rrbr7WGHuRHq'
}, {
'group': 'right',
'id': 'WCfPQPY3qVVs'
}, {
'group': 'bottom',
'id': 'XxGbrm8p3ywp'
}, {
'group': 'left',
'id': 'iVxkmHyURPG9'
}],
'groups': {
'top': {
'position': {
'name': 'top'
},
'zIndex': 10
},
'right': {
'position': {
'name': 'right'
},
'zIndex': 10
},
'bottom': {
'position': {
'name': 'bottom'
},
'zIndex': 10
},
'left': {
'position': {
'name': 'left'
},
'zIndex': 10
}
}
},
'data': {
'number': None,
'desc': None,
'category': None,
'executionRole': {
'roleId': '2XfVV5q3IPik',
'roleText': '角色'
},
'keyActivity': None,
'input': [{
'id': 3056,
'name': 'file_a.docx',
'nameEn': None,
'number': None,
'parentId': 3055,
'sortId': 0,
'type': 'STD_FILE',
'path': '3054-3055-3056-',
'namePath': '架构_batch_upload_files_process_001/流程图_batch_upload_files_process_001/file_a.docx',
'parentName': None,
'approvalStatus': None,
'isModified': None,
'hasChildren': None,
'isPublished': False,
'recordStatus': 0,
'level': 2,
'viewSort': '016100000000',
'isPublic': 0,
'extraProps': {
'relatedFileId': 3055
},
'processId': None,
'supportRiskDirId': None,
'institutionId': None,
'modifiedTime': None,
'supportFileDirId': 3055,
'deptId': None,
'pubTime': None
}, {
'id': 3057,
'name': 'file_b.docx',
'nameEn': None,
'number': None,
'parentId': 3055,
'sortId': 1,
'type': 'STD_FILE',
'path': '3054-3055-3057-',
'namePath': '架构_batch_upload_files_process_001/流程图_batch_upload_files_process_001/file_b.docx',
'parentName': None,
'approvalStatus': None,
'isModified': None,
'hasChildren': None,
'isPublished': False,
'recordStatus': 0,
'level': 2,
'viewSort': '016100000001',
'isPublic': 0,
'extraProps': {
'relatedFileId': 3055
},
'processId': None,
'supportRiskDirId': None,
'institutionId': None,
'modifiedTime': None,
'supportFileDirId': 3055,
'deptId': None,
'pubTime': None
}, {
'id': 3058,
'name': 'file_c.docx',
'nameEn': None,
'number': None,
'parentId': 3055,
'sortId': 2,
'type': 'STD_FILE',
'path': '3054-3055-3058-',
'namePath': '架构_batch_upload_files_process_001/流程图_batch_upload_files_process_001/file_c.docx',
'parentName': None,
'approvalStatus': None,
'isModified': None,
'hasChildren': None,
'isPublished': False,
'recordStatus': 0,
'level': 2,
'viewSort': '016100000002',
'isPublic': 0,
'extraProps': {
'relatedFileId': 3055
},
'processId': None,
'supportRiskDirId': None,
'institutionId': None,
'modifiedTime': None,
'supportFileDirId': 3055,
'deptId': None,
'pubTime': None
}],
'output': None,
'sopList': [],
'controlPoints': [],
'standards': [],
'indicators': [],
'itSystems': [],
'processingTimeLimit': None
},
'zIndex': 5
}
}
print("kwargs: " + json.dumps(good))
from easydict import EasyDict
a = EasyDict(good)
a = dict(a)
print("kwargs: " + json.dumps(a))