Add JSONP support to api/query in the JSON serializer