How to escape or remove "\" from the gson generated string?
<p>I am loading a value from the property file and then passing it to gson method for converting it to final json object. However, the value coming from the property file has double quotes for which the gson is adding "\" to the output. I have scanned down the whole web but unable to find a solution</p>

<p>The property file contains</p>

<pre><code>0110= This is a test for the renewal and the "Renewal no:" 
</code></pre>

<p>Here's my code</p>

<pre><code>public String toJSONString(Object object) {
    GsonBuilder gsonBuilder = new GsonBuilder();
    Gson gson = gsonBuilder.create();
    //Note object here is the value from the property file
    return gson.toJson(object);
}
</code></pre>

<p>This produces</p>

<pre><code>"{ResponseCode:0110,ResponseText:This is a test for the renewal and the \"Renewal no:\"}"
</code></pre>

<p>I am not sure in the output, why it is adding or wrapping the \ around the literals or where ever we have the double quotes in the property file value?</p>