I'm currently looking for a simply way to use Gson instead of Jackson as Provider. Currently I create the Json manually with Gson like this:
Gson gson = new Gson();
String s = gson.toJson(object);
and return it as Response with the specific status message - but that can't be the best solution also with Jackson I simply would can add the object itself.
Looking for a good example which works also for Jersey 1.x - because I want to move also some old project's to it.
I already tried this: http://eclipsesource.com/blogs/2012/11/02/integrating-gson-into-a-jax-rs-based-application/ but couldn't get it to work.
Any help appreciated.