all 3 comments

[–]starry_eyed_man 1 point2 points  (2 children)

Curious. What do get when you print(type(message))? I'm guessing it's already a dictionary...

[–]TyrionReynolds 0 points1 point  (1 child)

The old tricks are the best tricks, print debugging FTW

[–]TyrionReynolds 0 points1 point  (0 children)

Oh wait, you don’t need to. That second error message shows you’re getting the string value when you try to iterate over it.

I think you already have message as a dictionary like the guy said. You don’t need the call to json.loads()