title: Convert DataTable to json Dictionary with TableName as key
body: <p>Want to convert a datatable to the Dictionary object with key as table name and value as the rows in the datatable. </p>
  
  <pre><code>        DataTable dt = new DataTable();
          dt.TableName = "TableName";
  
          dt.Columns.Add(new DataColumn("ClientId"));
          dt.Columns.Add(new DataColumn("ClientName"));
          DataRow dr = dt.NewRow();
          dr["ClientId"] = 1;
          dr["ClientName"] = "Pradeep";
          dt.Rows.Add(dr);
  
          dr = dt.NewRow();
          dr["ClientId"] = 2;
          dr["ClientName"] = "Test";
          dt.Rows.Add(dr);
  </code></pre>
  
  <p>Now convert this dt object to <code>Dictionary&lt;string, object&gt;</code>, which key is the table name and object name is the json string.</p>