Can't json deserialize a 2d-array / matrix

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);

s = "{“f”:[[0.1,0.2,0.3],[0.4,0.5,0.6]]}

t2.F is null.

Jagged arrays are not supported, you can use List<List<float>>

This isn’t a jagged array, it’s a 2D array. Also not supported?

Same thing, use a list.

You should also be able to use a list array, e.g List<float>[]

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.