How to resolve the two-dimensional array?

Dec 1, 2011 at 2:03 PM

How to resolve the two-dimensional array?

example:

int[,] num = new int[2, 2];

string str = JsonConvert.SerializeObject(num);

The result is a one-dimensional array.

result:[0,0,0,0]

How to get this result:[[0,0][0,0]]