Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ujson does not support .dumps(cls=SomeEncoder) cls parameter #16

Open
EivV opened this issue Nov 25, 2019 · 1 comment
Open

ujson does not support .dumps(cls=SomeEncoder) cls parameter #16

EivV opened this issue Nov 25, 2019 · 1 comment

Comments

@EivV
Copy link

EivV commented Nov 25, 2019

As per ultrajson/ultrajson#124

If you have a package that requires ujson, it is automatically picked up by the compat.py and used in JSONFormatter thereafter. Unfortunately, ujson is not fully compatible with the built-in json.dump and it does not understand the cls parameter.

@albertomr86
Copy link
Owner

Hello.

After being off for a good amount of days, I'm planning to start doing clean up of issues.

Meanwhile, if you have some working code, please, add an MR, and I will be happy to review it.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants