title: Deserialize JSON object as .NET HashSet and Lists Failed
body: <p>I have this kind of Json I want to save:</p>
  <pre><code> &quot;data&quot;: {
        &quot;importMannerTypeList&quot;: {
          &quot;importMannerTypeID&quot;: 5,
          &quot;importMannerTypeDesc&quot;: &quot;a&quot;
        },
        &quot;authoritySourceList&quot;: [
          {
            &quot;authoritySourceID&quot;: 1,
            &quot;authoritySourceDesc&quot;: &quot;b&quot;
          }
        ],
        &quot;permitStatusList&quot;: {
          &quot;permitStatusID&quot;: 4,
          &quot;permitStatusDesc&quot;: &quot;c&quot;
        }}
  </code></pre>
  <p>All of them set as Arrays, but because <code>authoritySourceList</code> is multi select and not 1 object it look like this. here is the class that Deserialize the json, <code>importMannerTypeList</code> and <code>permitStatusList</code> failed to get the data from JSON why?</p>
  <pre><code>public class ImportPlantSettingsResponse
      {
          public ImportPlantSettingsResponse()
          {
              ImportMannerTypeList = new List&lt;ImportMannerType&gt;();
              AuthoritySourceList = new HashSet&lt;AuthoritySource&gt;();
              PermitStatusList = new List&lt;PermitStatusResponse&gt;();
          }
  
          public virtual List&lt;ImportMannerType&gt; ImportMannerTypeList { get; set; }
          public virtual ICollection&lt;AuthoritySource&gt; AuthoritySourceList { get; set; }
          public virtual List&lt;PermitStatusResponse&gt; PermitStatusList { get; set; }
  </code></pre>