import json
with open("mydata.json") as f: # Read the json file
python_dict = json.load(f) # Convert to Python object
print("Full Dictionary - ", python_dict)
print("First Name - ", python_dict['first_name'])
print("Last Name - ", python_dict['last_name'])
print("Location - ", python_dict['location'])
print("Company - ", python_dict['company'])
Full Dictionary - {'first_name': 'Paul', 'last_name': 'Harris', 'location': 'CA, US', 'company': 'PythonEasy.com'}
First Name - Paul
Last Name - Harris
Location - CA, US
Company - PythonEasy.com
Comment here