Python ValueError: No JSON object could be decoded

前端 未结 6 563
深忆病人
深忆病人 2020-12-30 07:41

I\'m trying to read a json and get its values. I have a folder with the JSON\'s archives, and I need to open all archives and get the values from them.

This is the c

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 08:24

    For me it was an encoding problem, you can try using Notepad++ to edit your .json file and change the Encoding to UTF-8 without BOM. Another thing you could check is if your json script is valid

提交回复
热议问题