Hi All,
I am working on WCF REST Service with returning data as Json format. For one of my method, declaration as shown below,
<operationcontract,>"POST", ResponseFormat:=WebMessageFormat.Json, BodyStyle:=WebMessageBodyStyle.Wrapped, UriTemplate:="GetExpenseSnapshot")>
Function GetExpenseSnapshot(ByVal sessionkey As String, ByVal expenseReportID As Integer) As ExpenseReportSnapShot
and in my implementation, i manually formatting the data as Json format. When i debug and check, the data was displayed correctly but when checking in WCF Client, the data was displayed wrongly i.e adding "@" symbol and extra double quotes ("") for each column.
For example,
@"{""Comment"" : [{""Row"":[ {""XmlLabel"":""RestService.EXPEntity"",""expenseReportID"":"""",""expReportNotesID"":""""
}]}]}""
but i need to display like this,
{"Comment" : [{"Row":[ {"XmlLabel":"RestService.EXPEntity","expenseReportID":"","expReportNotesID":""
}]}]}
Please help me to resolve this...
Thanks
Teja MS.