Improve JSON encoder
Now it's possible to extend JSONEncoder with custom types (by using register_encoder
decorator).
New JSONEncoder is capable of serializing the same types as drf.JSONEncoder and some additional types (enums, dataclasses).
Now it's possible to extend JSONEncoder with custom types (by using register_encoder
decorator).
New JSONEncoder is capable of serializing the same types as drf.JSONEncoder and some additional types (enums, dataclasses).