title: json newtonsoft : Deserialize Object containing a list of string
body: <p>I have the following issue with this json :</p>
  
  <pre><code>{
  "EVTS": {
  "EVT": [
    { "ID": "123456",
      "KEY1" : "somekey",
      "CATEG": [
        "cat1",
        "cat2",
        "cat3"
      ]
    }
    ]}
    }
  </code></pre>
  
  <p>and this c# class: </p>
  
  <pre><code>public class myClass{
      public string ID { get; set; }
      public string KEY1 { get; set; } 
  
      public list&lt;string&gt; CATEG { get; set; } 
  }
  
  public class ESObject1
  {
  
      [JsonProperty("EVT")]
      public List&lt;myClass&gt; EVT { get; set; }
  }
  
  public class ESObject0
  {
  
      [JsonProperty("EVTS")]
      public ESObject1 EVTS { get; set; }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>here i call the deserializer : </p>
  
  <pre><code>ESObject0 globalobject = JsonConvert.DeserializeObject&lt;ESObject0&gt;(json);
  </code></pre>
  
  <p>But this last code doesnt work, i throws this exception : <code>System.ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List</code>1[System.String].`</p>
  
  <p>Instead of <code>list&lt;string&gt;</code> i used <code>string []</code> and only <code>string</code> nothing seems to work.</p>
  
  <p>how can i deserialize this object correctly please.</p>
  
  <p>Thank you.</p>