我正在使用requests
进行API调用; resp = requests.get('<URL>')
,然后返回以下JSON:
var sometexthere = {"PO_Item":[{"Comment":"","Shipped_date":"21-Feb-2019","Supplier_SKU":"456"},{"Comment":"","Shipped_date":"","Supplier_SKU":"eee"},{"Comment":"","Shipped_date":"","Supplier_SKU":"3465"}]};
然后我尝试content = resp.json()
,但遇到错误json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
。
我想这是由于响应中包含var sometexthere =
吗?但是我不知道如何整理它。...?