rhq-project/rhq-metrics — pull request #103 by tsegismont (2014-12-19 15:08:55+00:00)
Title: JSONP: convert entities when media type is 'application/javascript'

Before the change, the JsonPFilter allowed JSONP for any resource, regardless of the media type (it could even wrap XML).

Now JSONP needs to be explicitely allowed (with @Produces)

Being a MessageBodyWriter JsonPProvider lets the JAX-RS runtime determine the content length.