intridea/grape — pull request #346 by thinkgareth (2013-02-22 18:34:17+00:00)
Title: JSONP content-type does not serialize entities properly...

See issue: https://github.com/intridea/grape/issues/345

I believe this is to do with the lack of support for :jsonp ( content-type: application/javascript ).

Support should be as per :json ( content-type: application/json ) with regard to serializing entities.

Support for application/javascript should be scoped to within the :jsonp symbol, specifically for JSONP. As this is a special case wherein you deliver Javascript but still serialize everything within the callback wrapper as JSON.

I'll get digging on this but presumably you'll know where to look immediately.

Cheers,

G