Mar-26-2019, 12:36 PM
Hello All:
I am fairly new to python, so
I have a small app that pulls data from REST using requests this returns a response object that I convert to JSON with this
Any Ideas/ Thanks Much!
I am fairly new to python, so
I have a small app that pulls data from REST using requests this returns a response object that I convert to JSON with this
jData = restResponse.json() #Convert to JSONAt this point I want to do something like this
for value in jData.items(): print(jData['alias']) #Throws key not found error.#If I do this however it runs, the problem is it seems to be printing everything out as one long string, I can;t access individual values using something like
jData['SomeKey'}I think its something simple but for the life of me I cant figure what
Any Ideas/ Thanks Much!
print(jData.values())