title: How to perform serialization and deserialization of datatables to and from JSON
body: <p>I am trying to find a way to both serialize and deserialize a dataset with one datatable to JSON and from JSON back to a dataset / datatable using JSON.NET, however all the samples and examples I have found are only serializing from a dataset or datatable to JSON and never two way.  We have a system that deals with XML serialized datasets and datatables that we need to still retain in that format but allow certain UI views to render the data as JSON.</p>
  
  <p>Data can have null values and that's valid.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Example (One way serialization):<br>
  <a href="http://www.west-wind.com/weblog/posts/2008/Sep/03/DataTable-JSON-Serialization-in-JSONNET-and-JavaScriptSerializer" rel="nofollow">http://www.west-wind.com/weblog/posts/2008/Sep/03/DataTable-JSON-Serialization-in-JSONNET-and-JavaScriptSerializer</a></p>