Overview
Learn to work with JSON data in Python using the json module in this comprehensive tutorial. Explore loading JSON into Python objects from strings and files, converting Python objects to JSON strings, and saving data back to files. Discover techniques for formatting, indenting, and manipulating JSON data, including deleting and looping through JSON objects. Gain practical experience with a real-world example using Yahoo Finance data, demonstrating how to load API responses, clean up JSON, and access specific information. Master essential skills for handling JSON in Python, from basic operations to advanced data manipulation techniques.
Syllabus
Intro
JSON Library
Load Data into Python
Convert JSON to Python
Printing JSON Objects
Deleting JSON Data
Formating JSON Data
Indenting JSON
Loading JSON
Looping through JSON
Removing keys from JSON
JSON Dump
JSON States
Real World Example
Yahoo Finance Example
Load Response into Python Object
Clean up JSON
Review JSON Data
Working with JSON Data
Running the code
Accessing the price
Creating a dictionary
Creating a key
Accessing a key
Running the key
Making a conversion
Outro
Taught by
Corey Schafer