MatrixJsonConverter
Models & Types ยท AiDotNet.Serialization
JSON converter for Matrix
Inheritance: JsonConverter โ MatrixJsonConverter
For Beginners
This class knows how to convert a Matrix (a grid of numbers) into JSON text format and back. It saves the number of rows, columns, and all the data values, so the matrix can be perfectly reconstructed later.
Constructors
| Constructor | Summary |
|---|---|
MatrixJsonConverter() |
Methods
| Method | Summary |
|---|---|
bool CanConvert(Type objectType) |
Determines whether this converter can handle the specified type. |
object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
Reads a Matrix |
void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) |
Writes a Matrix |