Parsing multiple JSON strings with the same name using python

Viewed 9

Im trying to get all the "name" strings from this url: https://inventory.roblox.com/v1/users/1/assets/collectibles and put them in a list. My current code is this:

(r := requests.get("https://inventory.roblox.com/v1/users/1/assets/collectibles")).raise_for_status()

json.loads(r)

for limited in r: print(limited["name"])

but it gives me this error:

TypeError: the JSON object must be str, bytes or bytearray, not Response

0 Answers
Related