title: How to ignore empty or not setted json key?
body: <p>I have a json like this:</p>
  
  <pre><code>{
  "user": [
  {
    "det": [
      {
        "Code": "9",
        "Description": "Update"
      }
    ],
    "arts": []
   }
  ]
  }
  </code></pre>
  
  <p>Now in some case the json that I reiceve contains the key <code>arts</code> in other case this key isn't provided, so simply I have only the json with the <code>det</code> key as:</p>
  
  <pre><code>{
  "user": [
  {
    "det": [
      {
        "Code": "9",
        "Description": "Update"
      }
    ]
   }
  ]
  }
  </code></pre>
  
  <p>and this is my class for deserializing it:</p>
  
  <pre><code>public class Det
  {
     public string Code { get; set; }
     public string Description { get; set; }
  }
  
  public class Arts
  {
     public string ID { get; set; }
     public string CON3 { get; set; }
  }
  
  public class user
  {
     public List&lt;Det&gt; det { get; set; }
     public List&lt;Arts&gt; arts {get; set; }
  }
  
  public class RootObject
  {
      public List&lt;Det&gt; user { get; set; }
  }
  </code></pre>
  
  <p>So when I receive the first json the code working well, but when I receive the second the code fall in exception:</p>
  
  <blockquote>
    <p>Cannot deserialize the current JSON object</p>
  </blockquote>
  
  <p>This because the <code>arts</code> key isn't provided but there is only the <code>det</code> key. So there is a way to tell to my code to ignore <code>arts</code> if is not setted? How can I do this? Thanks.</p>