Custom classes¶
Any classes that are not pass-through classes must be handled by registering hooks for them. DeterministicJsonSerializer has some predefined hooks registered and thus supports (de)serialization of the following built-in types out of the box:
class |
output |
|---|---|
sorted |
|
sorted |
|
element name as |
|
class name as |
|
|
|
|
|
|
|
For any custom classes not belonging to the built-in supported classes, class hooks or predicate hooks facilitating their (de)serialization can be registered with the serializer.