title: Parsing json using DeSerialization in C#
body: <p>I'm getting this <code>"System.Collections.Generic.Dictionary 2[System.String,System.Object]" is not of type "MyCustomControl.Result" and cannot be used in this generic collection</code>error while parsing json using <code>jvascripSerializer().DeSerialize</code>, my types look like below</p>
  
  <pre><code>class templateResponse
  {
      public String multicast_id;
      public String success;
      public String failure;
      public String canonical_ids;
      public Results results
  }
  public class Result
  {
      public String message_id;
      public String registration_id;
      public String error;
  }
  Public class Results : ObservableCollection&lt;Result&gt;
  {
  
  }
  </code></pre>
  
  <p>My json data look like below,</p>
  
  <pre><code>{"\"multicast_id\":7400896764380883211,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1351777805148960%39895cf0f9fd7ecd\"}]}"
  </code></pre>
  
  <p>This is my parsing code of json data</p>
  
  <pre><code>templateResponse result = new JavaScriptSerializer().Deserialize&lt;templateResponse&gt;(json);
  </code></pre>
  
  <p>Please help me to overcome this error and tell me what is wrong here?   </p>
  
  <p>Thanks,<br>
  Karthik.</p>