title: The JSON value could not be converted to System.Int32
body: <p>I want to send data of object to my Web API. The API accepts a parameter of class, which properties are type of int and string.</p>
  <p>This is my class:</p>
  <pre><code>public class deneme
  {
     public int ID { get; set; }
     public int sayi { get; set; }
     public int reqem { get; set; }
     public string yazi { get; set; }
  }
  </code></pre>
  <p>This is my JSON object:</p>
  <pre><code>{
     &quot;id&quot;:0,
     &quot;sayi&quot;:&quot;9&quot;,
     &quot;reqem&quot;:8,
     &quot;yazi&quot;:&quot;sss&quot;
  }
  </code></pre>
  <p>I want the api read the property &quot;sayi&quot; as integer.
  but because it cant, it gives the error:</p>
  <pre><code>The JSON value could not be converted to System.Int32. Path: $.sayi
  </code></pre>
  <p>How could I solve this problem?</p>