encoder_registry
get_jsonable_encoder
def get_jsonable_encoder() -> Dict[Type[Any], Callable[..., Any]]
Get the encoder registry as a dict of {type: serialize} pairs
deserialize
def deserialize(value: Any, typ: Optional[Type])
Deserialize a value into a given type.
Looks up the type in the encoder_registry and uses the deserializer to convert the value into the given type.
Arguments:
value: the value to deserializetyp: the type to deserialize into