No Converter for return type JSONObject
<p>I am using spring mvc and here is my service.</p>

<pre><code> @RequestMapping(value="/data/{id}",method=RequestMethod.POST)
    @ResponseBody
    public JSONObject data(@PathVariable Long id ,@RequestBody Long Intake ) {
        JSONObject obj = new JSONObject();
        obj.put("test", false);
            System.out.equals(obj);
            return obj;
    }
</code></pre>

<p>and it is throwing the error as:</p>

<pre><code>  java.lang.IllegalArgumentException: No converter found for return value of type: class org.json.JSONObject
</code></pre>

<p>I have checked many links pointing me that may be the  getter/setter are missing or the @ResponseBody annotation is missing.so I ran this code without the need of getter/setter but still showing me this error.</p>

<p>i have imported this dependency too.</p>

<pre><code>import org.json.*;
</code></pre>

<p>Any thoughts over this issue??</p>