Spring Oauth2.0 Missing grant type
<p>I am using Spring Oauth 2.O.</p>

<p>When I pass request as a form-data it works fine, but when I try to pass data in <code>application/json</code> format it gives me error missing grant type.</p>

<p><strong>Request</strong></p>

<pre><code>http://localhost:8080/oauth/token

{"username":"parths","password":"123456","grant_type":"password"}
</code></pre>

<p><strong>Error I getting.</strong></p>

<pre><code>{
  "status": "0",
  "message": "Missing grant type"
}
</code></pre>

<p>Please Guide.</p>