WeCodeAcademy

Read and write a JSON file

json.dump writes a dictionary to a file; json.load reads it back.

Examplepython
Open in editor »

More Python recipes