Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Reading JSON files
4. Access JSON fields
Summary and Review

Instruction

Great! As you could see, the load() function returns a dictionary with key-value pairs. Because we get key-value pairs, we can choose what element we want to see. If we only wanted to see the user's first name, we could write:

print(user["first_name"])

Exercise

Print only the last name of customer1. Use the last_name field.