c# - Remove backslash from json string in wp8 -
i have converted object string in wp8,by using string str=jsonconvert.serializeobject(object);
getting string this:- {\"catgroup\":[{\"category\":{\"cgsid\":9,\"cgsname\":\"ignition & engine filters\",\"values\":null}..
i want remove backslash string.i have used str = str.replace(@"\","");
but still getting string containing backslashes. how remove this?
those backslashes see in debug not there. used escape character.
in c# " indicates talking string value. if want string contain " character have type \" else close string. if don't know mean try this
string wrong = "type " in string"; string correct = "type \" in string";
since debugger working in same way code compiler has add \ display " character. seeing comments want write string database, can straight away without worrying backslashes.
Comments
Post a Comment