The encoder class (django.core.serializers.json.DjangoJSONEncoder by default) is used to convert from Python values to JSON data while the decoder class (json.decoder.JSONDecoder by default) is used to convert from JSON data to Python values — and not the other way round, as was erroneously documented.
The encoder class (
django.core.serializers.json.DjangoJSONEncoder
by default) is used to convert from Python values to JSON data while the decoder class (json.decoder.JSONDecoder
by default) is used to convert from JSON data to Python values — and not the other way round, as was erroneously documented.