Parse, Create & Manage JSON Data | Python for Beginners #18

7views
00
10:16
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
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

Duration

10:16

Published

February 9, 2026

Added to Codegiz

March 15, 2026

Open in YouTube