Jersey + Json media type application/json was not found Jersey + Json media type application/json was not found json json

Jersey + Json media type application/json was not found


This problem is fixed with jersey-bundle-1.8.jar


Fixed issue by adding the following to my pom.xml:

    <dependency>        <groupId>com.owlike</groupId>        <artifactId>genson</artifactId>        <version>0.99</version>    </dependency>

Documentation can be found at: https://code.google.com/p/genson/


First of all if your @POST web-service returns a response you must add @Produces annotation.

Ensure that jersey-json lib is in your classpath.Try removing the toString() method because it may broke the beans structure format.