anny-booking-automation/resource_id_helper.py
2026-02-05 15:21:50 +01:00

9 lines
222 B
Python

import json
with open("nice.json", "r", encoding="utf-8") as f:
data = json.load(f)
for i in data["data"]:
print ("%-32s id: %s" % (i["attributes"]["name"], i["id"]))
print(type(data)) # usually <class 'dict'>