JsonConverterRegistry
Helpers & Utilities · AiDotNet.Serialization
Registry for JSON converters used in model serialization. Manages custom converters for complex types like Matrix, Vector, and Tensor.
For Beginners
This class helps convert complex data structures (like matrices and tensors) into JSON format so they can be saved to files and loaded later. JSON is a text format that’s easy to read and write, making it perfect for saving machine learning models.
Methods
| Method | Summary |
|---|---|
List<JsonConverter> GetAllConverters() |
Gets all registered JSON converters. |
List<JsonConverter> GetConvertersForType() |
Gets converters that can handle the specified type. |
void ClearConverters() |
Clears all registered converters. |
void RegisterAllConverters() |
Registers all default converters for common types. |
void RegisterConverter(JsonConverter converter) |
Registers a custom JSON converter. |