public static string DataSetToJson(DataTable dt)
{
string json = string.Empty;
try
{
if (dt==null||dt.Rows.Count == 0)
{
return "";
}
json = "{";
json += "'table" + 1 + "':[";
for (int i = 0; i < dt.Rows.Count; i++)