In this video, you’ll learn how to deserialize JSON data into Python objects you can use in your program.
The json
module exposes two methods for deserializing JSON
load()
will load JSON data from a file-like object. We use this method when we’re reading in data from a file-like object.
loads()
will load JSON data from a string containing JSON-encoded data.
Unless your encoded data is something very simple, these methods will most likely return a Python dict
or list
containing your deserialized data.
Tonya Sims on June 29, 2019
Great tutorial on JSON! Can you tell me which code editor you are using?