'values': [{'time': 1484641807, 'value': '82.65750701554559'},
{'time': 1484728214, 'value': '80.79120664030835'},
{'time': 1484814627, 'value': '79.67643848241566'},
{'time': 1484901050, 'value': '81.09244951074712'},
{'time': 1484987470, 'value': '82.29822225342822'},
{'time': 1485073882, 'value': '82.92465020796419'},
{'time': 1485160301, 'value': '83.33185846708719'}]}]}
>>>
>>> python_data = json.loads(api_response)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/json/__init__.py", line 348, in loads
'not {!r}'.format(s.__class__.__name__))
TypeError: the JSON object must be str, bytes or bytearray, not 'StatisticsHistory'
Am I missing something?