Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python Tutorial - Working with JSON Data Using the JSON Module

Corey Schafer via YouTube

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

Reviews

Start your review of Python Tutorial - Working with JSON Data Using the JSON Module

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.