title: Unexpected character encountered while parsing Value asp.net Core
body: <p>this is i am trying to do but getting this error </p>
  
  <blockquote>
    <p>Unexpected character encountered while parsing value</p>
  </blockquote>
  
  <pre><code>var searchModel = Newtonsoft.Json.JsonConvert.DeserializeObject&lt;EmployeeSearchModel&gt;(filter);
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>  public class EmployeeSearchModel
       {
           public string EmployeeNameSearch { get; set; } = null;
           public string SearchFilter { get; set; } = null;
       }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/UdmrD.png" rel="nofollow noreferrer">Error Detail</a></p>