a=[{"processInstanceId": null, "processDefinitionId": null, "processCurrentApprovers": null, "variables": {"人员单选1_pretty_value": null, "人员单选1": null, "核酸天数": 2, "身份证号": "2"}, "processStatus": null, "processState": null, "author": "762170a15430c18442bbe3a6c4fbfbdd", "lastModifier": "762170a15430c18442bbe3a6c4fbfbdd", "lastModifierName": "4444", "version": 1, "authorName": "44444", "dataStaticUrl": null, "formDefinitionId": "6375c82a73927c0af3aed228", "id": "7067242997824208896", "applicationId": null, "lastModifyDate": 1669357449773, "taskId": null, "createDate": 1669357449773}] a=json.loads(a) print(a[0]['variables']) print(a[0])
print结果
{'人员单选1_pretty_value': 0, '人员单选1': 0, '核酸天数': 2, '身份证号': '2'}
{'processInstanceId': 0, 'processDefinitionId': 0, 'processCurrentApprovers': 0, 'variables': {'人员单选1_pretty_value': 0, '人员单选1': 0, '核酸天数': 2, '身份证号': '2'}, 'processStatus': 0, 'processState': 0, 'author': '762170a15430c18442bbe3a6c4fbfbdd', 'lastModifier': '762170a15430c18442bbe3a6c4fbfbdd', 'lastModifierName': '', 'version': 1, 'authorName': '', 'dataStaticUrl': 0, 'formDefinitionId': '6375c82a73927c0af3aed228', 'id': '7067242997824208896', 'applicationId': 0, 'lastModifyDate': 1669357449773, 'taskId': 0, 'createDate': 1669357449773}