title: Deserialize Json with dynamic key C#
body: <p>I'm struggling with a Json provided by an external parter :</p>
  <pre><code>{
    &quot;info&quot;: {
      &quot;compa&quot;: &quot;123&quot;
    },
    &quot;employees&quot;: {
      &quot;key1&quot;: {
        &quot;name&quot;: &quot;dog&quot;,
        &quot;friend&quot;: [ &quot;cat&quot; ]
  
      },
      &quot;key2&quot;: {
        &quot;name&quot;: &quot;fish&quot;,
        &quot;friend&quot;: [ &quot;shark&quot; ]
      }
    }
  }
  </code></pre>
  <p>I use classes:</p>
  <pre><code>public class company
  {
      public info info { get; set; }
  
      public employees employees { get; set; }
  }
  
  public class info
  {
      public string compa { get; set; }
  }
  
  public class employees
  {
      public List&lt;Dictionary&lt;string, employee&gt;&gt; employee { get; set; }
  }
  
  public class employee
  {
      public string name { get; set; }
  
      public string friend { get; set; }
  }
  </code></pre>
  <p>When I deserialize, my employee property is empty in employees class.</p>
  <p>Any help would be really appreciated!</p>