title: How can I do System.Web.Script.Serialization in C#?
body: <p>How can I do this in C# modern UI ?</p>
  
  <pre><code>var url = "http://ajax.googleapis.com/ajax/services/feed/load?q=http%3A%2F%2Fwww.digg.com%2Frss%2Findex.xml&amp;v=1.0";
  var wc = new WebClient();
  var rawFeedData = wc.DownloadString(url);
  
  //You can use System.Web.Script.Serialization if you don't want to use Json.NET
  JavaScriptSerializer ser = new JavaScriptSerializer();
  FeedApiResult foo = ser.Deserialize&lt;FeedApiResult&gt;(rawFeedData);
  
  //Json.NET also return you the same strong typed object     
  var apiResult = JsonConvert.DeserializeObject&lt;FeedApiResult&gt;(rawFeedData);
  </code></pre>
  
  <p>It gives me error an error in WebClient and <code>System.Web.Script.Serialization</code></p>