@Override public boolean isReadable( Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.APPLICATION_JSON_TYPE.getType().equals(mediaType.getType()) && MediaType.APPLICATION_JSON_TYPE.getSubtype().equals(mediaType.getSubtype()); }