django-prettyjson icon indicating copy to clipboard operation
django-prettyjson copied to clipboard

DjangoJSONEncoder instead of standardjson?

Open minusf opened this issue 5 years ago • 1 comments

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.
    """

minusf avatar Sep 12 '18 10:09 minusf

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 https://github.com/audreyr/standardjson/issues/3

kevinmickey avatar Sep 12 '18 12:09 kevinmickey