Parse, Create & Manage JSON Data | Python for Beginners #18
7views
0010:16
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn Python JSON handling in this beginner-friendly tutorial! ๐
In this lesson, you will learn:
โ
import json to access the json module
โ
json.dumps() to convert Python to JSON strings
โ
json.loads() to parse JSON strings to Python
โ
Pretty printing with indent parameter
โ
Type mappings: True to true, None to null
โ
json.dump() to write JSON to files
โ
json.load() to read JSON from files
โ
Processing loaded JSON data
โ
Custom serializer with default parameter
โ
Handling datetime objects in JSON
โ
Mini Project: Contact Data Manager
๐ Timestamps:
0:00 - Introduction
0:22 - JSON Basics Explained
0:46 - JSON Basics Demo
3:01 - JSON Files Explained
3:25 - JSON Files Demo
5:39 - Data Manager Explained
6:03 - Data Manager Demo
8:45 - Recap
9:20 - End
๐ป Source Code: https://github.com/GoCelesteAI/python_working_with_json
๐ Code from this lesson:
# Convert Python to JSON string
import json
user = {"name": "Alice", "age": 25}
json_string = json.dumps(user, indent=2)
# Parse JSON string to Python
parsed = json.loads(json_string)
# Write JSON to file
with open("data.json", "w") as f:
json.dump(data, f, indent=2)
# Read JSON from file
with open("data.json", "r") as f:
loaded = json.load(f)
# Custom serializer for datetime
def serialize(obj):
if isinstance(obj, datetime):
return obj.isoformat()
json.dump(data, f, default=serialize)
๐ Previous: Lesson 17 - Modules & Imports
๐ Next: Lesson 19 - Classes & Objects
#Python #PythonTutorial #LearnPython #Programming #JSON #PythonJSON #DataSerialization #PythonBasics
Tags: Python, Python tutorial, Python for beginners, learn Python, JSON, json module, dumps, loads, dump, load, serialization, parsing,
Python basics, CelesteAI
Back to tutorials๐ Read the articleOpen in YouTube
Duration
10:16
Published
February 9, 2026
Added to Codegiz
March 15, 2026