My json file
{
"people": []
}
My python code
with open("people.json") as jsonFile:
load = json.load(jsonFile)
data = {
"fname": "Jason",
"lname": "Scott",
"age": 32,
"job": "web developer",
"spouse": "Jane Scott"
}
load["people"].append(data)
jsonFile.close()
I want to add to the list from my python file, with my code above, the json file remains unchanged.