I checked the server logs and I can't seem to find anything that explains why it's doing this. Every time I load the page I get a "500 Internal Server Error" message. All I'm trying to do is update a JSON file.
#!/usr/bin/env python
import cgi
import json
new_data = {"2": {"title": "what", "date": "tomorrow"}}
with open("jobs.json") as file:
data = json.load(file)
data.update(new_data)
with open('test.json', 'w') as file:
json.dump(data, file)