title: Converting Json object to DataTable
body: <p>In a few posts here and also on other forums I have found this code quoted for turning a Json object into a DataTable:</p>
  
  <pre><code>DataTable dt = (DataTable)JsonConvert.DeserializeObject(json, (typeof(DataTable)));  
  </code></pre>
  
  <p>I can't get this to work.  It always throws a JsonSerializationException.  Am I missing something?</p>
  
  <p>This is simple example to show error:</p>
  
  <pre><code>JObject query = new JObject();
  JObject results = new JObject();
  
  results.Add("Name", "Blue Umbrella");
  results.Add("Price", 100);
  
  query.Add("results", results);
  
  DataTable dt = (DataTable)JsonConvert.DeserializeObject(query.ToString(), (typeof(DataTable)));
  </code></pre>
  
  <p>What did I do wrong?</p>