title: Deserializing Json Value to C# List<String>
body: <p>I'm having an issue with converting a one part of a JSON string to C# List. The original code didn't have the [JsonProperty] and it that's where the issue started. I added the [JsonProperty]  to the MdId value, but the issue is still happens.</p>
  <p>C# Class</p>
  <pre class="lang-cs prettyprint-override"><code>public class PendingPatientDocumentRecord
  {
      public int PatientDocumentFileMapId;
      public short ContextTypeId;
      public string PatientVisitId;
      public List&lt;string&gt; BillingIds;
      public DateTime? DateOfService;
  
      [JsonProperty(&quot;MdId&quot;)]
      public List&lt;string&gt; MdId;
  }
  </code></pre>
  <p>Deserialization code</p>
  <pre class="lang-cs prettyprint-override"><code>List&lt;PendingPatientDocumentRecord&gt; pendingDocuments = JsonConvert.DeserializeObject&lt;List&lt;PendingPatientDocumentRecord&gt;&gt;(pendingDocumentsJson);
  </code></pre>
  <p>JSON String:</p>
  <pre class="lang-json prettyprint-override"><code>[
    {
      &quot;PatientDocumentFileMapId&quot;:12,
      &quot;ContextTypeId&quot;:3,
      &quot;DateOfService&quot;:&quot;08/31/2022&quot;,
      &quot;MdId&quot;:&quot;ala&quot;
    }
  ]
  </code></pre>
  <p>Error:</p>
  <blockquote>
  <p>Error converting value &quot;ala&quot; to type System.Collections.Generic.List`1[System.String]'. Path '[0].MdId'</p>
  </blockquote>