Method parameter annotated with @FormParam is always null in JAX-RS
<p>I am trying to send multiple form parameters to my REST servive using <code>POST</code>. But the parameters sent by the client are always received as <code>null</code>.</p>

<pre class="lang-java prettyprint-override"><code>@POST
@Path("/login")
@Produces({ "application/json" })
public LoginData userLogin(@FormParam("picture") String picture, 
                           @FormParam("name") String name, 
                           @FormParam("email") String email) {
    ...
}
</code></pre>

<p>When I remove all the parameters like the code below, it works properly:</p>

<pre class="lang-java prettyprint-override"><code>@POST
@Path("/login")
@Produces({ "application/json" })
public LoginData userLogin() {
    ...
}
</code></pre>

<p>I've checked and the values sent by the client are not <code>null</code>.</p>

<p>Is there a different way to receive the parameters?</p>