Serialize and Deserialize Multidimensional Array to JSON
<p>I am using the built-in library <code>JavaScriptSerializer</code> to serialize and deserialize a multidimensional array. </p>

<p>It is stated in the MSDN that <code>A multidimensional array is serialized as a one-dimensional array, and you should use it as a flat array.</code></p>

<p>I have tried to deserialize it, but kept getting <code>Unable to cast object of type 'System.Double[]' to type 'System.Double[,,]'.</code></p>

<pre><code>double[, ,] y = serializer.Deserialize&lt;double[, ,]&gt;(jsonMatrix);
</code></pre>

<p>Does this mean that i have re-construct it back manually ? If so, any solutions.</p>