I have this code:
Actually, you just have to add ?callback=?, jQuery does the rest.
?callback=?
$(document).ready(function() { $.getJSON('http://example.com/api/get_cats?callback=?', function(fbResults) { document.write(fbResults.cats[0].title); }); });