有没有办法使用 Python 在同一个文件中复制 JSON 文件的一部分?我想取Changelog我的文件,“若干意见”部分的重复元素的一部分内“若干意见”一节。
这是我要复制的代码:
{
"title": "1.0",
"useBoldText": true,
"useBottomMargin": true,
"class": "DepictionSubheaderView"
},
{
"markdown": "\t\n\u2022 Initial Release",
"useSpacing": false,
"class": "DepictionMarkdownView"
},
{
"markdown": "<small style=\"color: #999; margin-top: -8px;\">Released 3/7/2019</small>",
"useRawFormat": true,
"class": "DepictionMarkdownView"
}
JSON 文件:
{
"minVersion": "0.1",
"headerImage": "",
"tintColor": "",
"tabs": [
{
"tabname": "Changelog",
"views": [
{
"title": "1.0",
"useBoldText": true,
"useBottomMargin": true,
"class": "DepictionSubheaderView"
},
{
"markdown": "\t\n\u2022 Initial Release",
"useSpacing": false,
"class": "DepictionMarkdownView"
},
{
"markdown": "<small style=\"color: #999; margin-top: -8px;\">Released 3/7/2019</small>",
"useRawFormat": true,
"class": "DepictionMarkdownView"
}
],
"class": "DepictionStackView"
}
],
"class": "DepictionTabView"
}
白猪掌柜的
弑天下
相关分类