title: JavascriptSerializer, Deserializer, not able to deserialize my object
body: <p>I am unable to deserialize my custom object.</p>
  
  <pre><code>public class UserInfo
  {
    public int Id1 { get; set; }
    public string Code { get; set; }
    public int Id2 { get; set; }
    public List&lt;string&gt; Roles { get; set; }
    public string Eg1 { get; set; }
    public DateTime Time{ get; set; }
    public string Eg2 { get; set; }
    public string Version { get; set; }
  }
  
  JavaScriptSerializer serializer = new JavaScriptSerializer();
  
  return serializer.Deserialize&lt;UserInfo&gt;(raw);
  </code></pre>
  
  <p>The Deserialize is throwing an exception</p>
  
  <p>"Cannot convert object of type 'System.String' to type 'UserInfo'"</p>
  
  <p>JSON Contents:</p>
  
  <pre><code>"\"{\\\"Id1\\\":0,\\\"Code\\\":null,\\\"Id2\\\":0,\\\"Roles\\\":null,\\\"Eg1\\\":\\\"Eg2\\\",\\\"Time\\\":\\\"\\\\/Date(-62135596800000)\\\\/\\\",\\\"Version\\\":\\\"1.0.0.0\\\"}\""
  </code></pre>
  
  <p><em>Note: Let me know, if it is unclear. I'll edit the question.</em></p>
  
  <p>-- edited. ID2 changed to Id2. The real class is different in terms of variable names. Hence the issue.</p>