title: JavaScriptSerializer Deserialize c#?
body: <blockquote>
    <p>Error: The type arguments for method <code>'System.Web.Script.Serialization.JavaScriptSerializer.Deserialize&lt;T&gt;(string)'</code> cannot be inferred from the usage. Try specifying the type arguments explicitly.</p>
  </blockquote>
  
  <pre><code>string url = null;
  public int GetLinkedIn()
  {
      var jsonString = new System.Net.WebClient().DownloadString("http://www.linkedin.com/countserv/count/share?url=" + url + "&amp;format=json");
  
      var json = new JavaScriptSerializer().Deserialize&lt;dictionary dynamic="" string=""&gt;&gt;(jsonString);
      var count = Convert.ToInt32(json["count"]);
  
      return count;
  }
  </code></pre>