I am new to using JAX-RS and wrote a sample application that outputs a json object. but I am getting an exception. Here is my code:
@Path(\"/hello\")
public
Just a small addition. In case if you do not use the web.xml descriptor file, you may enable the POJOMappingFeatire programatically as shown below
...
final ResourceConfig rc = new PackagesResourceConfig("com.test.resources");
final Map config = new HashMap();
config.put("com.sun.jersey.api.json.POJOMappingFeature", true);
rc.setPropertiesAndFeatures(config);
...