I have an ASP.NET Web API endpoint with controller action defined as follows :
[HttpPost] public HttpResponseMessage Post([FromBody] object text)
In ASP.NET Core 2.0 you simply do the following :-
using (var reader = new StreamReader(Request.Body)) { string plainText= reader.ReadToEnd(); // Do something else return Ok(plainText); }