json
{
"age": 20,
"address": {
"zipcode": "100000"
}
}
python
from json_mini import json_loads
python
with open('data.json', 'r') as file:
json_data = json_loads(file.read())
python
name = json_data['name']
age = json_data['age']
gender = json_data['gender']
hobbies = json_data['hobbies']
address = json_data['address']
print(age) # 20