Search code examples
jqueryasp.netajaxwcfwcf-binding

Pass to WCF string and parse it with JSON Newton


I have

var sendThisString = JSON.stringify({ 'value': jsObj });

and I have WCF

[OperationContract]
[WebInvoke(Method = "POST",
           BodyStyle = WebMessageBodyStyle.Wrapped,
           RequestFormat = WebMessageFormat.Json,
           ResponseFormat = WebMessageFormat.Json)]
 public string RowString(string rawJSON)
 {
        return "";
 }

So I did not want to use standard WCF serialisation my json string to C# object

I need to pass json string to WCF and then I will parse it by my serialisation

I just want to see sample (client and server side) where you pass to WCF string "{'test':'test1'}" or another


Solution

  • I decide replace jsObj with string, or do not use wcf