You can use a jagged array instead of a two-dimensional array, which is defined like:
int[][] numbers = new int[8][];
for (int i = 0; i <= 7; i++) {
numbers[i] = new int[4];
for (int j = 0; j <= 3; j++) {
numbers[i][j] =i*j;
}
}
The JavascriptSerializer will then serialise this into the form [[#,#,#,#],[#,#,#,#],etc...]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…