title: Type 'string[]' which is not a supported primitive type or a valid entity type. - How do I deserialize the json string?
body: <p>I have below <code>json</code> </p>
  
  <pre><code> "PayloadData": {
        "CustomFields": ['test','test2'],
        "SampleNumber":"123"
       }
  </code></pre>
  
  <p>I am using below code to deserialize the json.</p>
  
  <pre><code>   Message message = JsonConvert.DeserializeObject&lt;Message&gt;(payloadData);
  </code></pre>
  
  <p>Here is my property in <code>Message</code> class</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Gets or sets CustomFields
      /// &lt;/summary&gt;
      [Required]
      [DataMember(Name = "CustomFields")]
      public List&lt;string&gt; CustomFields{ get; set; }
  </code></pre>
  
  <p>But, I get below error.</p>
  
  <blockquote>
    <p>"The property 'Message.CustomFields' could not be mapped, because it is of type 'string[]' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'."</p>
  </blockquote>