Answers for "replace string with list value in json"

-1

replace string with list value in json

with open('file.json', 'r+') as file:
    content = file.read()
    file.seek(0)
    content.replace('string_replaced', 'new_string')
    file.write(content)
Posted by: Guest on May-14-2020

Code answers related to "replace string with list value in json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language