Replies: 1 comment 1 reply
-
Support for |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We consider to consume function from_data in json.py to print prettify json. But I found it doesn't accept 'default' which just like default in json.dumps. It means it may hit issue while converting class into json.
json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)
If specified, default should be a function that gets called for objects that can’t otherwise be serialized. It should return a JSON encodable version of the object or raise a TypeError. If not specified, TypeError is raised.
Beta Was this translation helpful? Give feedback.
All reactions