SlySerialize.top_level#
Functions and converters for using SlySerialize.
Functions
|
Converts a value from JSON to a type T. |
|
Converts a value from JSON to a type T with support for async converters. |
|
Converts a value to JSON. |
- SlySerialize.top_level.from_json(cls: type[T], value: JsonType, loader: Loader[JsonType, T] | None = None, allow_extra_keys: bool = False) T #
Converts a value from JSON to a type T.
If not specified, uses the default converter.