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

DjangoJSONEncoder instead of standardjson? #20

Open
minusf opened this issue Sep 12, 2018 · 1 comment
Open

DjangoJSONEncoder instead of standardjson? #20

minusf opened this issue Sep 12, 2018 · 1 comment

Comments

@minusf
Copy link

minusf commented Sep 12, 2018

would it not be possible to use DjangoJSONEncoder instead of standardjson?

class DjangoJSONEncoder(json.JSONEncoder):
    """
    JSONEncoder subclass that knows how to encode date/time, decimal types, and
    UUIDs.
    """
@kevinmickey
Copy link
Owner

Thanks for the suggestion -- I was recommended standardjson years ago, but I would definitely prefer having one less dependency, so I'll take a look.

See audreyfeldroy/standardjson#3

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