When I try to serialize a multi-dimensional array using the new built-in JSON serializer in dotnet core 3.1, I get an error:
int[,] foo = new int[5, 5];
var json = System.Text.Json.JsonSerializer.Serialize(foo);
System.NotSupportedException: 'The collection type 'System.Int32[,]' is not supported.'
Is there a way to use a custom JSON converter for multi-dimensional arrays?