如何将旧的json从逻辑_1,逻辑_2的所有键名重命名为逻辑(删除下划线和序列号)(ps:json文件中的数据通过循环获取获取多数据)
[
{
"logic_1": "NOT",
"StudyDescription": "",
"SeriesDescription": "C\\+",
"ImageComments": ""
},
{
"logic_2": "NOT",
"StudyDescription": "\\-C",
"SeriesDescription": "\\-C",
"ImageComments": "\\-C"
}
]
至
[
{
"logic": "NOT",
"StudyDescription": "",
"SeriesDescription": "C\\+",
"ImageComments": ""
},
{
"logic": "NOT",
"StudyDescription": "\\-C",
"SeriesDescription": "\\-C",
"ImageComments": "\\-C"
}
]