How to pass string in 'Body' Parameter of Retrofit 2 in android
<pre><code>@POST("api/login")
Call&lt;ApiResponse&gt; loginUser(@Body String user);
</code></pre>

<p>Here the string is actually a JSONstring i.e. </p>

<pre><code>{"email":"test@gmail.com","password":"test"}
</code></pre>

<p>Couldnt figure out what is wrong in this. Either the string it again converted to json. Please suggest..</p>

<p>This is what i want to do to my request as shown in picture.</p>

<p><a href="https://i.stack.imgur.com/Dw71X.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Dw71X.png" alt="enter image description here"></a></p>