title: SQL Dataset to JSON
body: <p>Alright I have been trying to figure this out and I read the <a href="http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx" rel="nofollow">MSDN</a> page on the JavaScriptSerializer. However, I still can't figure out how to get this to work on an asp.net page. I want to convert my dataset into a json string so I can graph it using FLOT(graphing tool) </p>
  
  <hr>
  
  <p>THIS MADE IT WORK THANKS FOR YOUR HELP GUYS: this is in vb.net for future people</p>
  
  <pre><code>Imports System.Web.Script.Serialization
  </code></pre>
  
  <p>....</p>
  
  <pre><code>Dim myObject = dataset.GetXml()
  Dim jsonString = (New JavaScriptSerializer()).Serialize(myObject)
  </code></pre>