I am call this REST API from AJAX but somehow not able to pass JSON object to @Path("/putEmp")?
<p>JSON passing to REST API in Java either in GET or PUT way, what are the libs I should have other than the following? </p>

<ol>
<li><p>bson-3.0.1.jar </p>

<ol start="2">
<li>jackson-annotations-2.3.2.jar </li>
<li>jackson-core-2.3.2.jar     </li>
</ol></li>
<li><p>jackson-databind-2.3.2.jar
jackson-jaxrs-base-2.3.2.jar 
       jackson-jaxrs-json-provider-2.3.2.jar</p>

<p>jackson-module-jaxb-annotations-2.3.2.jar
jersey-entity-filtering-2.17.jar  jersey-media-json-jackson-2.17.jar
json-lib-2.2.2-jdk15.jar</p></li>
</ol>

<p>Still I am getting the following error when I access this REST Service:</p>

<p>EROOR:  No serializer found for class org.json.JSONObject and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) )</p>

<pre><code>    @GET
    @Path("/getJSON2/{a}/{b}/{c}")
    @Produces(MediaType.APPLICATION_JSON)
    public JSONObject getJSON2(@PathParam ("a") int a, @PathParam ("b") String b, @PathParam ("c") String c) throws JSONException
    {
    JSONObject js = new JSONObject();
    Employee ee = new Employee();
    ee.setId(a);
    ee.setFname(b);
    ee.setLName(c);
    System.out.println("==========="+ee.toString());
    js.put("employee", ee);
    return js;
}
</code></pre>