Something ought to be wrong in the original post. As far as I can say, you were quite lucky that
was able to guess what was wrong and help you. Frankly, reading your 12-line code, I had no idea on how to help you on an error occurring on line 26 of your program (even if I should admit that I am not really familiar with the JSON modules). Next time you need help, please try to make your question more helpful. Please help us to help you.