d
This commit is contained in:
parent
0c86901ab5
commit
78e7937c0d
3 changed files with 54534 additions and 0 deletions
9
resource_id_helper.py
Normal file
9
resource_id_helper.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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'>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue