Use json.dump() to turn a Python dictionary into JSON and write it to an opened file. Pass the dictionary first and the file object second. section 8.0
Save a coffee order
Import json, open orders.json for writing, dump the order, and close the file. Add indent=4 when you want the saved JSON to be easier to read. You can also dump a list of orders. section 8.0


