I use RESTEasy and, more specifically, the client side of their framework.
I call the web service of the third part, which returns me the JSON code.
But, for some reason, the content type in their answer is "text / javascript".
How can I tell RESTEasy that it should use a JSON (unmarshalling target) provider for the "text / javascript" content type?
Is it possible?
My code is:
public interface XClient { @GET @Produces("application/json") @Path("/api/x.json") public Movie getMovieInformation( @QueryParam("q") String title); }
What could be the solution:
public interface XClient { @GET @Produces("text/javascript")
source share