I'm trying to get a response from http://steamcommunity.com/profiles/76561198081591043/inventory/json/730/2 in python using requests.
import requests
url = "http://steamcommunity.com/profiles/76561198081591043/inventory/json/730/2"
r = requests.get(url)
print r.text
print r.json()
r.text
and r.json()
return the objects ordered differently.
In 'rgInventory' for instance the first 3 "ids":
in .text
end in 925, 658, 891
but in .json()
end in 891, 619, 741
(just co-incidence that they're descending).
json.loads(r.text)
yields the same result
How do i get the json
objects to be in the same order as .text
shows them?