Python/Json:Expecting property name enclosed in double quotes

前端 未结 16 2354
南方客
南方客 2020-11-27 03:23

I\'ve been trying to figure out a good way to load JSON objects in Python. I send this json data:

{\'http://example.org/about\': {\'http://purl.org/dc/terms/         


        
16条回答
  •  长情又很酷
    2020-11-27 03:49

    Quite simply, that string is not valid JSON. As the error says, JSON documents need to use double quotes.

    You need to fix the source of the data.

提交回复
热议问题