MatrixJsonConverter

Models & Types ยท AiDotNet.Serialization

JSON converter for Matrix types. Handles serialization and deserialization of matrix objects to/from JSON.

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 object from JSON.
void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) Writes a Matrix object to JSON.