alorence / django-modern-rpc

Simple XML-RPC and JSON-RPC server for modern Django
http://django-modern-rpc.rtfd.io
MIT License
98 stars 17 forks source link

Make small corrections to the docs on JSON serialization and deserialization #38

Closed mfonism closed 3 years ago

mfonism commented 3 years ago

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.

alorence commented 3 years ago

Indeed this error is in the documentation for years now. Thank you for spotting it and for your contribution ! Regards