title: What should I use to serialize a DataTable to JSON in ASP.NET 2.0?
body: <p>I'm trying to support a legacy app I made a year ago and need to use jQuery AJAX calls to get data from the server.  I have a JsonHelper class that I use to serialize <code>DataTable</code>s and <code>DataSet</code>s.  This normally works fine in .NET 4.0, but .NET 2.0 there is no <code>System.Web.Script.Serialization</code> library and therefore no <code>JavaScriptSerializer</code> class.</p>
  
  <p>I've tried to find another JSON serializer, but so far I can't get anything to work.  </p>
  
  <p>I tried using JSON.NET 2.0 <a href="http://json.codeplex.com/releases/view/13099" rel="noreferrer">http://json.codeplex.com/releases/view/13099</a> but it said it needed a higher framework.  So I tried JSON.NET 1.3.1 <a href="http://json.codeplex.com/releases/view/6987" rel="noreferrer">http://json.codeplex.com/releases/view/6987</a>
  I could only figure out how to write JSON to a .txt file, and I'd like to just be able to pass the string back to the client.</p>
  
  <p>I also just tried JsonFx.NET <a href="http://jsonfx.net/download/" rel="noreferrer">http://jsonfx.net/download/</a> serialization library (for 2.0).  Still couldn't get anything to work.</p>
  
  <p>I don't know if I'm missing some crucial element of these libraries or if there is an easy solution. </p>
  
  <p>Thanks in advance </p>