I have a java ee application that uses jax-rs. But when i return a boolean in a call that returns json, it gives a 500 error.
@GET
@Path("/test")
@Produces("application/json")
public boolean test() {
return true;
}
The above code will give this generic error message: The server encountered an internal error that prevented it from fulfilling this request.
If i remove the @Produces("application/json")
it does work but returns 'text/plain'.