title: asp.net core web api how to send json object from client side c#
body: <p>this is my client code </p>
  
  <pre><code>var client = new HttpClient();
              client.BaseAddress = new Uri(BASE_URL);
              var multipart = new MultipartFormDataContent();
              var jsonToSend = JsonConvert.SerializeObject(template, Formatting.None);
              var body = new StringContent(jsonToSend, Encoding.UTF8, "application/json");
              multipart.Add(body, "JsonDetails");
              return client.PostAsync("jsons", multipart);
  </code></pre>
  
  <p>server code is </p>
  
  <pre><code> [HttpPost("jsons")]
          public async Task&lt;IActionResult&gt; RequestJson([FromBody]Person person)
          {
  
          if (person != null)
          {
              return Ok("true");
          }
  
  
          return Ok("false");
  </code></pre>
  
  <p>person code </p>
  
  <pre><code>public class Person
      {
          public string Name { get; set; }
          public string Position { get; set; }
      }
  </code></pre>
  
  <p>when look in debug my post from client dont knock to server, in postman my post sending and i can see my object property </p>