I have a folder containing ~10000 JSON files, and I'm looking to add a new identical key/value pair ("Symbol": "PPF") to each one.
Each JSON file is named using an increasing number: 0.json, 1.json, 2.json, ... 9999.json, 10000.json
My current best attempt was trying to remove the last line of every file (the final }
), then append ,"Symbol": "PPF"
.
What would be the fastest way of adding that key/value pair to all JSON files?