title: Handle Json Request data in WCF REST Service POST method
body: <p>i am creating the REST service with POST method and OBJECT as input param. while client request am unable to get the actual JSON data client have posted. Is there any way to dig the JSON code from the C# WCF service.</p>
  
  <p>My code:</p>
  
  <pre><code>namespace ACTService
  {
    public class AssortmentService : IAssortmentService
    {
      public void DeleteColor(DeleteColorContarct objdelcolor)
      {
           new Methods.ColorUI().DeleteColorDetails(objdelcolor);
      }
    }
  }
  </code></pre>
  
  <p>and my interface as </p>
  
  <pre><code>namespace ACTService
  {
    [ServiceContract]
    public interface IAssortmentService
    {
      [OperationContract]
      [WebInvoke(UriTemplate = "DeleteColor", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.Wrapped)]
      void DeleteColor(DeleteColorContarct objColor);
    }
  }
  </code></pre>
  
  <p>I need to access the JSON format in other class file <strong>ColorUI</strong></p>