title: how to pass JSON string as input parameter WCF RESTful service?
body: <p>I have a web service as below,</p>
  
  <pre><code>  [ServiceContract]
          public interface IRestServiceImpl
          {             
              [OperationContract]
              [WebInvoke(Method = "POST",
                  ResponseFormat = WebMessageFormat.Json,
                  BodyStyle = WebMessageBodyStyle.Wrapped,
                  UriTemplate = "json/{jsondata}")]
              void JSONData(string jsondata);       
          }
  
  
      public class RestServiceImpl : IRestServiceImpl
      {
          List&lt;ClsTripAdvisorData&gt; lst = new List&lt;ClsTripAdvisorData&gt;();
          ClsTripAdvisorData _ClsTripAdvisorData = null;
  
          #region IRestServiceImpl Members       
          public void JSONData(string jsondata)
          {
              string[] data = jsondata.Split('&amp;');
          }
  }
  </code></pre>
  
  <p>Its expecting a JSON input. while i am testing this service with poster by passing a JSON string as  query string request  as below,</p>
  
  <pre><code>http://localhost:1162/RestServiceImpl.svc/json/api_version=4 &amp;hotels=[{"ta_id":97497,"partner_id":"229547","partner_url":"http://partner.com/deeplink/to/229547"},{"ta_id":97832,"partner_id":"id34234","partner_url":"http://partner.com/deeplink/to/id34234"}] &amp;start_date=2013-07-01 &amp;end_date=2013-07-03 &amp;num_adults=2 &amp;num_rooms=1 &amp;lang=en_US &amp;currency=USD &amp;user_country=US &amp;device_type=d &amp;query_key=6167a22d1f87d2028bf60a8e5e27afa7_191_1360299600000_2_2
  </code></pre>
  
  <p>Here my string parameter is <code>api_version=4 &amp;hotels=[{"ta_id":97497,"partner_id":"229547","partner_url":"http://partner.com/deeplink/to/229547"},{"ta_id":97832,"partner_id":"id34234","partner_url":"http://partner.com/deeplink/to/id34234"}] &amp;start_date=2013-07-01 &amp;end_date=2013-07-03 &amp;num_adults=2 &amp;num_rooms=1 &amp;lang=en_US &amp;currency=USD &amp;user_country=US &amp;device_type=d &amp;query_key=6167a22d1f87d2028bf60a8e5e27afa7_191_1360299600000_2_2</code></p>
  
  <p>Its not hitting the service method break point while debugging.</p>
  
  <p>At the same time its working for the following JSON as below,</p>
  
  <pre><code>http://localhost:1162/RestServiceImpl.svc/json/asd
  </code></pre>
  
  <p>The service method not taking the JSON string input,</p>
  
  <p>I just want send this string as body part of my web service.But i dont know how to send and receive this json string using wcf rest service </p>