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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -