title: WCF REST can not parse Request Body
body: <p>I have a struggling time with WCF REST to parse request body. 
  My problem:</p>
  
  <ul>
  <li>POST method https://{Service}/X/Y? Z= 0000000</li>
  <li>Body Request: {"id":"id"}</li>
  </ul>
  
  <p>My code:</p>
  
  <blockquote>
  <pre><code>[ServiceContract]
  public interface IService
  {
      [OperationContract]
      [WebInvoke(Method = "POST",
                  BodyStyle = WebMessageBodyStyle.Bare,
                  RequestFormat = WebMessageFormat.Json,
                  ResponseFormat = WebMessageFormat.Json,
                  UriTemplate = "/X/{y}?Z={z}")
                  ]
      string GetRequest(string y, string z, Request request);
  }
  </code></pre>
  </blockquote>
  
  <pre><code>public class Service : IService
  {
      public string GetRequest(string y, string z, Request request)
      {
          //Do sth
      }
  
  
  [DataContract]
  public class Request
  {
      [DataMember]
      [JsonProperty("id")]
      public String  Id { get; set; }
  }
  </code></pre>
  
  <p>The problem that I have is that y and z has data and they are correct BUT <strong>id in request is null.</strong> I expected to be "id".</p>
  
  <p>I searched a lot in the internet and I found Stream solution which is not easily to follow in this case.
  I am wondering if anyone has a clever idea to do this. </p>