Spaces:
Running
Running
import json | |
# Load the JSON file | |
with open('data.json', 'r') as file: | |
data = json.load(file) | |
# Access the 'users' key | |
users = data.get('users', []) | |
# Count the number of users | |
num_users = len(users) | |
# Print the number of users | |
result = num_users |