title: convert and bind JSON to asp.net gridview
body: <p>I have the following JSON</p>
  
  <pre><code>[{"time":"11:28","message":"user1: hi"},{"time":"11:28","message":"user2: hi to you"}] 
  </code></pre>
  
  <p>it was very easy to serialize from a database table using C#. 
  i used the following function to serialize</p>
  
  <pre><code>public String ConvertDataTableTojSonString(DataTable dataTable)
  {
      System.Web.Script.Serialization.JavaScriptSerializer serializer =
             new System.Web.Script.Serialization.JavaScriptSerializer();
  
      List&lt;Dictionary&lt;String, Object&gt;&gt; tableRows = new List&lt;Dictionary&lt;String, Object&gt;&gt;();
  
      Dictionary&lt;String, Object&gt; row;
  
      foreach (DataRow dr in dataTable.Rows)
      {
          row = new Dictionary&lt;String, Object&gt;();
          foreach (DataColumn col in dataTable.Columns)
          {
              row.Add(col.ColumnName, dr[col]);
          }
          tableRows.Add(row);
      }
      return serializer.Serialize(tableRows);
  }
  </code></pre>
  
  <p>i thought it might be some error in the JSON it self, but i tested it in <a href="http://jsonlint.org/" rel="nofollow">http://jsonlint.org/</a> and it was valid
  However i tried and searched a lot to convert it back to any format that can bind to asp.net gridview. any ideas?</p>