When it comes to consuming a Web API with jQuery, you'll want to use JSON as it's lightweight and easy to handle with jQuery.
As always, when something seems to become a silver bullet there arise some new problems on the horizon.
And so do jQuery and JSON when trying to receive some JSON from a foreign domain with jQuery.getJSON.
You'll simply get: nothing.
jQuery.getJSON is a wrapper for jQuery.Ajax and you could also write your request like this:
When executing this you'll get an alert with "error".
This is because you're trying to do cross domain scripting which is not allowed.
To get a detailed description of the problem and it's solution please read this.
To make it possible to use jQuery Ajax calls receiving JSON you'll have to use JSONP (JSON with Padding) which embeds a dynamically created