你能帮我编辑json吗?我是python的新手。非常感谢。

你能帮我编辑json吗?我是python的新手。非常感谢。,python,json,Python,Json,我需要编辑一些json配置,为了节省时间,我想用python自动编辑它,但是数据对我来说很复杂,你能帮我吗 tes={ 'key':1, 'Test':45, 'name':'Google', 'list':[{ 'nameinlist':'name1', 'age':23, 'country':'LA', 'parent':{'name':'World'}, 'zipcodeindic':[23,45,66] }] } 我想修改 'namein

我需要编辑一些json配置,为了节省时间,我想用python自动编辑它,但是数据对我来说很复杂,你能帮我吗

tes={
'key':1, 'Test':45, 'name':'Google',
'list':[{
    'nameinlist':'name1',
    'age':23,
    'country':'LA',
    'parent':{'name':'World'},
    'zipcodeindic':[23,45,66]
    }]
}
我想修改

'nameinlist':'name1'->'nameinlist':'name2'
'parent':{'name':'World'} ->'parent':{'name':'World2'}
'zipcodeindic':[23,45,66]->'zipcodeindic':[23,33,66]

到目前为止,您尝试了什么?请查看有关如何加载json、修改字典、为json编写字典的基本python教程。谢谢您,我忘记了tes['list'][0]['nameinlist']索引[0],所以我失败了。
tes['list'][0]['nameinlist']='name2'
tes['list'][0]['parent']={'name':'World2'}
tes['list'][0]['zipcodeindic']=[23,33,66]