title: Send Json object parameter to Web Api controller in .netCore
body: <p>This is Google API - Javascript code</p>
  
  <pre><code>var output = new Object();
  output.PlaceID = place.place_id;
  output.Longitude = place.geometry.location.lng();
  output.Latitude = place.geometry.location.lat();
  
  $.ajax({
      headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
      },
      url: 'api/StorePlaces/Get',
      type: 'POST',
      data: { "value":output },
      success: function (result) {
          // Do something with the result
      }
  });
  </code></pre>
  
  <p>How to receive at the controller</p>
  
  <pre><code>    // GET api/values/5
      [HttpPost("{PlaceDetails}")]
      public string Get(PlaceDetails value)
      {
          return "value";
      }
  </code></pre>
  
  <p>In this case I get null value</p>
  
  <p>I was unable to send the string , if I can send the Object as such, it is better.</p>
  
  <p>This can be used as receiving object</p>
  
  <pre><code>public class PlaceDetails
  {
      public string PlaceID { get; set; }
      public string Longitude { get; set; }
      public string Latitude { get; set; }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/J0r46.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J0r46.png" alt="enter image description here"></a></p>