Loading Data from a JSON File
Like the pickle
module, the json
module has a load()
function which takes a stream object, reads JSON-encoded data from it, and creates a new Python object that mirrors the JSON data structure.
Access this course and 1400+ top-rated courses and projects.