Python Forum
Issues parsing the response from a request
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues parsing the response from a request
#1
I'm making a request call and getting back a response. The response is giving me a problem and I can't seem to parse the results.

new_response = requests.post(scribe_map_color_count, json={"buttonColor":buttonColor})
json_data = new_response.json()
print(json_data)
The print output from this code looks like this...
{u'data': [{u'count': 43.0, u'buttonColor': u'Yellow'}]}

I understand that the u is not an issue but I can't seem to parse this information out. I need to get the count information.
Reply


Messages In This Thread
Issues parsing the response from a request - by garnold - May-11-2019, 02:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  request.get to read large response pythonlearner1 7 3,307 Apr-05-2022, 08:21 PM
Last Post: pythonlearner1
  how can I correct the Bad Request error on my curl request tomtom 8 5,139 Oct-03-2021, 06:32 AM
Last Post: tomtom
  Unable to convert request response. johnboy1974 4 3,113 Apr-05-2021, 10:10 AM
Last Post: snippsat
  Empty response to request causing .json() to error t4keheart 1 10,166 Jun-26-2020, 08:35 PM
Last Post: bowlofred
  ImportError: cannot import name 'Request' from 'request' abhishek81py 1 3,974 Jun-18-2020, 08:07 AM
Last Post: buran
  Parsing Soap XML response grootkarzijn 7 15,672 Jun-14-2019, 01:30 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020