Python Forum
How can i fix json.decoder.JSONDecodeError ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i fix json.decoder.JSONDecodeError ?
#4
(Oct-30-2021, 11:21 AM)buran Wrote: Your current snippet raise different error

Error:
Traceback (most recent call last): File "***", line **, in <module> write_json(y) File "***", line **, in write_json file_data["emp_details"].append(new_date) TypeError: list indices must be integers or slices, not str


I'm sorry, the code I gave you is wrong. No blocks try and except.
Reply


Messages In This Thread
RE: How can i fix json.decoder.JSONDecodeError ? - by JgKSuperstar - Oct-30-2021, 03:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  JSONDecodeError: Expecting value mehtamonita 1 1,607 Mar-07-2022, 04:24 PM
Last Post: bowlofred
  Problems with JSONDecodeError arsouzaesilva 0 1,499 Sep-22-2021, 06:33 PM
Last Post: arsouzaesilva
  coding a decoder... Popkhorn 2 2,228 May-28-2020, 07:26 AM
Last Post: Popkhorn
  reset on inactivity (building a morse decoder) gerrit1985 7 3,729 Apr-17-2020, 10:22 AM
Last Post: deanhystad
  UTF-8 decoder reports bad byte that is not there Skaperen 0 2,376 Oct-11-2018, 04:46 AM
Last Post: Skaperen
  MP4 decoder jdewk 4 5,760 Jan-13-2018, 10:02 PM
Last Post: jdewk
  JSON Decoder issue Cronax3 2 9,879 Sep-13-2017, 09:23 AM
Last Post: Cronax3

Forum Jump:

User Panel Messages

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