I am using the built-in library JavaScriptSerializer
to serialize and deserialize a multidimensional array.
It is stated in the MSDN that A multidimensional array is serialized as a one-dimensional array, and you should use it as a flat array.
I have tried to deserialize it, but kept getting Unable to cast object of type 'System.Double[]' to type 'System.Double[,,]'.
double[, ,] y = serializer.Deserialize<double[, ,]>(jsonMatrix);
Does this mean that i have re-construct it back manually ? If so, any solutions.