title: Deserialize raw JSON and convert to custom C# Object
body: <p>I have the following raw JSON string:</p>
  
  <pre><code>[\"Hello World!\",\"94952923696694934\",\"MyChannel\"]
  </code></pre>
  
  <p>I have tried the following without luck:</p>
  
  <p>My custom object class:</p>
  
  <pre><code>public class MyObject
  {
     public string msg { get; set; }
     public string id { get; set; }
     public string chn { get; set; }
  }
  </code></pre>
  
  <p>JSON string:</p>
  
  <pre><code>string str = "[\"Hello World!\",\"94952923696694934\",\"MyChannel\"]";
  </code></pre>
  
  <p>1st attempt at deserilization using <em>System.Web.Script.Serialization</em>:</p>
  
  <pre><code>JavaScriptSerializer serializer = new JavaScriptSerializer();
  MyObject obj1 = serializer.Deserialize&lt;MyObject&gt;(str);
  </code></pre>
  
  <p>2nd attempt at deserilization using <em>Newtonsoft.Json</em>:</p>
  
  <pre><code>MyObject obj2 = JsonConvert.DeserializeObject&lt;MyObject&gt;(str);
  </code></pre>
  
  <p>Both attempts fail. Any suggestions?</p>