我创建了一个多维数组..它存储了我的数据库表中的多行..
SqlDataAdapter da = new SqlDataAdapter("select * from question_bank_details where question_num in (select top 2 question_num from question_bank_details order by newid())", con5);
DataTable data_table = new DataTable();
DataList data_list = new DataList();
da.Fill(data_table);
string[,] array_questions = new string[dt.Rows.Count,dt.Columns.Count];
for (int i = 0; i <dt.Rows.Count; i++)
{
for (int j = 0; j < dt.Columns.Count; j++)
{
array_questions[i, j] = dt.Rows[i][j].ToString();
}
}
data_list.DataSource = data_table;
data_list.DataBind();
现在我需要将这个多维数组转换为 JSON 格式。请帮助