difference between 'APPLICATION_JSON' and 'APPLICATION_JSON_VALUE'
<p>I am new to spring development and want to know what is the difference between 
<code>MediaType.APPLICATION_JSON_VALUE</code> and <code>MediaType.APPLICATION_JSON</code>?</p>

<p>I have a thought of both are representing same <code>application/json</code> content type but if I put <code>MediaType.APPLICATION_JSON</code> some compiler errors are shown to add <code>@controller</code> and <code>@ResponseBody</code> annotations to my rest controller and When to use <code>MediaType.APPLICATION_JSON</code>?</p>

<pre><code>@RequestMapping(value="/invite", method = POST, consumes = { MediaType.APPLICATION_JSON })
public @ResponseBody String sendInvite( ... ) { ... }
</code></pre>