JsonSerializer will serialize a matrix but deserializing is set to null
public class Test
{
public float[,] F { get; set; }
}
var t1 = new Test { F = new float[,] { { 0.1f, 0.2f, 0.3f }, { 0.4f, 0.5f, 0.6f } } };
string s = new JsonSerializer<Test>().SerializeToString(t1);
var t2 = new JsonSerializer<Test>().DeserializeFromString(s);
Just info for anyone else who comes across this question.
Couldn’t use a list of arrays, as it needed to be a matrix required for image manipulation within a 3rd party library.
Whilst I could have a helper to convert float[,] to List<<float[]>>, I ended up using Newtonsoft for this particular deserialization, as it can process multi-dimensional arrays.