2
Reply

Remove backslash from json string wp8

Sweta Sinha

Sweta Sinha

Dec 16 2014 6:04 AM
6.1k

I have converted an object into string in wp8,by using

string str=JSONConvert.SerializeObject(object);
Now I am getting a string like this:-
{\"catGroup\":[{\"category\":{\"cgsId\":9,\"cgsName\":\"Ignition & Engine Filters\",\"values\":null}..

I want to remove the backslash from the string.I have used str = str.Replace(@"\","");

But still I am getting the string containing backslashes. How to remove this?


Answers (2)