У меня есть некоторый код для моего Slack Bot:
import pyowm
owm.set_API_key('Key Here')
observation = owm.weather_at_id(4744326)
w = observation.get_weather()
jsondata= w.get_temperature('fahrenheit') # Here is our JSON Data.
response = (json.loads(jsondata))
print(response)
JSON, который я пытаюсь преобразовать:
{"temp": 47.05, "temp_max": 50.0, "temp_min": 42.8, "temp_kf": null}
Когда я запускаю это, я получаюследующая ошибка:
TypeError: the JSON object must be str, bytes or bytearray, not dict
Любые советы?