Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f17f8 commit 47c5474Copy full SHA for 47c5474
1 file changed
Lib/json/encoder.py
@@ -176,7 +176,8 @@ def default(self, o):
176
return JSONEncoder.default(self, o)
177
178
"""
179
- raise TypeError(repr(o) + " is not JSON serializable")
+ raise TypeError("Object of type '%s' is not JSON serializable" %
180
+ o.__class__.__name__)
181
182
def encode(self, o):
183
"""Return a JSON string representation of a Python data structure.
0 commit comments