Working with JSON data from Python

0% of 3 hours and 7 minutes completed.

JavaScript Object Notation (JSON) is an open-standard format that uses human-readable text to transmit data objects consisting of key–value pairs. It's the most common data format used for asynchronous browser/server communication (AJAJ), largely replacing XML which is used by AJAX.

This course will carefully examine serializing Python objects to JSON, and its reverse, deserializing JSON to Python objects. The default JSON encoder is sufficient to serialize some Python objects; we will explain in depth when a custom encoder is needed and how to build one. Likewise, the course will also cover building a custom decoder.

After completing this course, you will be able to:

  • Identify seven basic data types that closely map between Python and JSON
  • Serialize basic Python types to JSON
  • Deserialize basic JSON types to Python objects
  • Write a custom JSON encoder to serialize a Python object to JSON
  • Write a custom JSON decoder to deserialize JSON to a Python object
There are no resources available.
0 attachments
Serialize Python to JSON
49 minutes 7 Activities: Article  (1)  |  Lab  (2)  |  Video  (4)
Deserialize JSON to Python
53 minutes 6 Activities: Article  (1)  |  Lab  (3)  |  Video  (2)
Write custom JSON encoders and decoders
1 hour 17 minutes 9 Activities: Article  (1)  |  Lab  (3)  |  Video  (5)
1 minute 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)
5 minutes 1 Activity: Article  (1)  |  Lab  (0)  |  Video  (0)