users@jersey.java.net

[Jersey] how to produce JSONP

From: Leonardo <sombriks_at_gmail.com>
Date: Mon, 5 Sep 2011 09:11:32 -0300

Hello everyone.

@Produces allows me to change from default XML to JSON, so i can
translate java objects into javascript objects in a very standard and
transparent way.

Now i need to generate JSON with padding, in other words surround the
root object with an arbitrary callback function.

Any guidance? can the serializer in charge of json construction
receive this modification easily?