Cody Cody - 6 months ago 36
Java Question

Simple way to remove escape characters from this JSON date

In my android application, my JSON date is returned as this:


Is there a simple way to remove the escape characters? (This is being sent from a WCF service to an Android application). I am already using
to decode the entire serialized object.


On the receiving end, if you really want to, you could just do myJsonString = myJsonString.replaceAll("\\","");

But do note that those escape characters in no way make the JSON invalid or otherwise semantically different -- the '/' character can be optionally escaped with '\' in JSON.