IMil
0
Q:

python json replace string

with open('file.json', 'r+') as file:
    content = file.read()
    file.seek(0)
    content.replace('string_replaced', 'new_string')
    file.write(content)
0

New to Communities?

Join the community