How to escape double quotes in a string at runtime for parsing json?
Basically, I have a JSON. And when I try to parse it, I'm getting JSON parse exception because of the double-quotes. And there are many files like this. This is just an example.
JSON:
{
"event": {
"signUp": false,
"info": {
"celebity": "In an attempt to \\"test\\" purchased a table,enjoy with our who are also new \\"empty\\" the best use of this space for our \\"always\\" enjoyment!"
}
}
}
I'm using couchbase SDK
JsonTranscoder trans = new JsonTranscoder();
com.couchbase.client.java.document.json.JsonObject jsonObj = trans.stringToJsonObject(json);