2
Answers

Remove backslash from json string wp8

Sweta Sinha

Sweta Sinha

10y
6.2k
1

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)