JSONDecodeError: Expecting value: line 1 column 1

后端 未结 2 731
无人共我
无人共我 2021-02-04 00:30

I am receiving this error in Python 3.5.1.

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here is my code:<

2条回答
  •  隐瞒了意图╮
    2021-02-04 01:06

    in my case, some characters like " , :"'{}[] " maybe corrupt the JSON format, so use try json.loads(str) except to check your input

提交回复
热议问题