测试人社区

求助: 接口直播2,老师在自检jsonpath时,s创建的过快,然后自己按照老师的操作后,运行时报错

s='''
... '''
from jsonpath import  jsonpath
import json
j=json.loads(s)

报错信息

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None

自己操作跟老师操作的对比图


求助,上述的报错是哪里出现了问题,应该怎么修改