Ive been working on an address book in python, and I need to make a function that can write to a json file. The function needs to be able to add/append to this specific json layout
Json Layout Example -
{"addresses": [ {"name": "example", "town": "example", "address": "example"} ] } The Problem - I only know how to write to a json file, not how to write to a json object...
Can someone please show me an example of how to add/append to a json object