Post json data in body to web api
I get always null value from body why ? I have no problem with using fiddler but postman is fail. I have a web api like that: [Route("api/account/GetToken/")] [System.Web.Http.HttpPost] public HttpResponseBody GetToken([FromBody] string value) { string result = value; } My postman data: and header: WebAPI is working as expected because you're telling it that you're sending this json object: { "username":"admin", "password":"admin" } Then you're asking it to deserialize it as a string which is impossible since it's not a valid JSON string. Solution 1: If you want to receive the actual JSON as