May-11-2019, 02:46 AM
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.
{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.
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.