title: Retrieving body of json Object of an http Request C#
body: <p>I have the problem, that I can't retrieve the body of a POST statement of a JSON Object. Here is the function, which is called when executing the http-Request:</p>
  
  <pre><code>        public static HttpResponseMessage Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = "HttpTriggerCSharp/name/{name}")]HttpRequestMessage req, string name, TraceWriter log)
      {
          log.Info("C# HTTP trigger function processed a request.");
  
          string output = JsonConvert.SerializeObject(req.Content.ToString());
  
          // Fetching the name from the path parameter in the request URL
          return req.CreateResponse(HttpStatusCode.OK, output);
  
      }
  </code></pre>
  
  <p>Im executing the POST with Postman and the following URL: <a href="http://localhost:7071/api/HttpTriggerCSharp/name/test" rel="nofollow noreferrer">http://localhost:7071/api/HttpTriggerCSharp/name/test</a></p>
  
  <p>In the Header I wrote "Content-Type: application/json" and the Body looks like this: </p>
  
  <pre><code>  {  
     "Benutzer":"Nenad",
     "Passwort":"test"
    }
  </code></pre>
  
  <p>My result is this: "\"System.Net.Http.StreamContent\""</p>
  
  <p>Thank you for your help!</p>