我正在尝试通过以下代码加载json文件
import json
with open('ass1//data//reviews_Digital_Music.json', encoding="utf8") as f:
review = json.load(f,encoding="utf8")
返回错误
C:\Users\Admin\Anaconda3\lib\json\decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
JSONDecodeError: Extra data
有了更多的见解,你可以找到我的json文件的一部分,该文档还有10000多个这样的字典
{"reviewerID": "A2EFCYXHNK06IS","asin": "5555991584", "reviewerName": "Abigail Perkins \"Abby "Reads Too Much"...", "helpful": [4, 5], "reviewText": "text", "overall": 5.0, "summary": "Enya Experiments And Succeeds", "unixReviewTime": 978480000, "reviewTime": "01 3, 2001"}
{"reviewerID": "A1WR23ER5HMAA9", "asin": "5555991584", "reviewerName": "AKB", "helpful": [1, 1], "reviewText": "text", "overall": 5.0, "summary": "How to improve upon perfection.", "unixReviewTime": 953424000, "reviewTime": "03 19, 2000"}
{"reviewerID": "A2IR4Q0GPAFJKW", "asin": "5555991584", "reviewerName": "Alexander", "helpful": [0, 0], "reviewText": "text", "overall": 4.0, "summary": "Good listening.", "unixReviewTime": 1393545600, "reviewTime": "02 28, 2014"}
如何将其加载为dic?