質問編集履歴

1

エラー内容を記載してなかったので追記しました。

2021/06/06 03:15

投稿

unisara
unisara

スコア8

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,31 @@
29
29
  print(data)
30
30
 
31
31
  ```
32
+
33
+
34
+
35
+ エラーの内容
36
+
37
+ ```ここに言語を入力
38
+
39
+ Traceback (most recent call last):
40
+
41
+ File "[パス]/getjson.py", line 5, in <module>
42
+
43
+ data = json.load(fileopen)
44
+
45
+ File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 293, in load
46
+
47
+ return loads(fp.read(),
48
+
49
+ File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
50
+
51
+ return _default_decoder.decode(s)
52
+
53
+ File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 340, in decode
54
+
55
+ raise JSONDecodeError("Extra data", s, end)
56
+
57
+ json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 787)
58
+
59
+ ```