Python Forum
TKinter JSON Key Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TKinter JSON Key Error
#2
You are not working with json, you are working with lists and dictionaries. json.loads() creates a dictionary or a list. Do you know how lists and dictionaries work?

I would use a print statement or the debugger to get a look at what is returned by:
x = requests.get(sonURL).json()
print(x)
Reply


Messages In This Thread
TKinter JSON Key Error - by Nu2Python - Jan-02-2023, 06:09 AM
RE: TKinter JSON Key Error - by deanhystad - Jan-02-2023, 06:32 AM
RE: TKinter JSON Key Error - by Nu2Python - Jan-02-2023, 06:58 PM
RE: TKinter JSON Key Error - by deanhystad - Jan-02-2023, 08:23 PM
RE: TKinter JSON Key Error - by Nu2Python - Jan-02-2023, 10:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] How to insert data json to treeview tkinter? Shakanrose 8 4,863 Jan-19-2023, 03:58 PM
Last Post: Shakanrose

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020