I am facing issues while consuming JAX-RS services as JSON.
Below I have added my code.
This is my service class:
//Sets the path to base URL
To overcome this issue try the following. Worked for me.
Add following dependency in the pom.xml
org.glassfish.jersey.media jersey-media-json-jackson 2.25
And make sure Model class contains no arg constructor
public Student() { }