anny-booking-automation/resource_id_helper.py
2026-02-06 17:42:40 +01:00

8 lines
220 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'>