我有一个json文件名input如下
{
"abc": {
"dbc": {
"type": "string",
"metadata": {
"description": "Name of the namespace"
}
},
"fgh": {
"type": "string",
"metadata": {
"description": "Name of the Topic"
}
}
},
"resources": [
{
"sku": {
"name": "[parameters('sku')]"
},
"properties": {},
"resources": [
{
"resources": [
{
"resources": [
{
"properties": {
"filterType": "SqlFilter",
"sqlFilter": {
"sqlExpression": "HAI"
}
}
}
]
}
]
}
]
}
]
}
我想要“sqlExpression”:将“HAI”值替换为BYE,如下所示“sqlExpression”:“BYE”我希望python代码执行此操作,我尝试了以下代码,但输入[“资源”][0][“资源"][0]["资源"][0]["资源”][0][属性][0][sqlFilter][0][sqlExpression][0]=“BYE”无效
1条答案
按热度按时间kcwpcxri1#
结果