In my WCF Service, I have a service method which returns response in JSON format. But when I call the service I get the JSON response with lots of escape characters inside it. I understand that this the way C# represents a string with double quotes. But in some or other way I want to get a clean Json as a response.
My Current response is;
{"GetMDXResponseResult":"{\" : [{\"cubeDatabaseName\" : \"Adventure Works DW 2008R2\",\"cubeName\" : \"Adventure Works\",\"cubeBaseName\" : \"\"},{\"cubeDatabaseName\" : \"Adventure Works DW 2008R2\",\"cubeName\" : \"Mined Customers\",\"cubeBaseName\" : \"\"}]}"}
But I want to have my response as;
{"GetMDXResponseResult":[{"cubeDatabaseName":"Adventure Works DW 2008R2","cubeName":"Adventure Works"},{"cubeDatabaseName":"Adventure Works DW 2008R2","cubeName":"Mined Customers"}]}
Any help on this will be highly appreciated.
Thanks;
Bhaskar