API Calls shouldn't always be JSONP

Currently calls to the JSON API always return a JSONP response (always have the function call wrapping the JSON). This is nice if JSONP is always used, but in my case I'd just like to get the JSON (currently I have to strip off the wrapped function call). Most implementations of JSON/JSONP I've seen/used/wrote only include the wrapped function if the call was made with a "callback" parameter.

I believe implementing your JSON API this way would make it more useful for those that are using the API in back-end server calls, rather than through a client-side JS method.
2 people like
this idea