What is the right way to handle Strings when doing HTTP requests?
<p>I have an Android application acting as a client to my back end server. </p>

<p>I am doing a <code>POST</code> http request with a help of Retrofit lib with a String in the body.</p>

<p>Problem is, Retrofit is most likely escaping double quotes when using GSON builder.</p>

<p>That results in a field in my DB containing double quotes, example: <code>"example_gcm_token"</code>.</p>

<p>I need to know whether I should handle that on server side or on client side and how to do that.</p>

<p>I assume it shouldn't be on the server side as it would mean I have to remove escaped quotes for every single endpoint. </p>

<pre><code>@POST ("/Maguss/users/{userId}/gcmtoken")
    Call&lt;Void&gt; setGcmToken(@Path("userId") Long userId, @Body StringEntity gcmToken);
</code></pre>