I am having trouble creating a python script to read through a list of many .JSON files (100+), find and replace multiple different keywords in each file, and save all files while keeping the original filenames.
The keywords which need to be found and replaced in each file are:
-
find what: n (the string value “n” is present in the files instead of a return line)
replace with: (an actual return line that n should produce) -
find what:
replace with: (a blank – no string value here) -
find what: “[
replace with: (a blank- no string value here) -
find what: “]
replace with: (a blank – no string value here)
Any help would be greatly appreciated!
I’ve tried looking for similar scenarios but am unable to find anything.