json格式化response报警json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
遇到问题将requests请求相应结果json()化时,提示"JSONDecodeError:Expectingvalue:line1column1(char0)"importjsonimportrequestsresp=requests.get(url).json()defraw_decode(self,s,idx=0):"""DecodeaJSONdocumentfrom``s``(a``st