Get json file with ajax

Get json file with ajax

How can I get the json that this url generates?


It returns a json object as a file to download, I've tried getting the data as jsonp, but it needs a callback in the feed, but I can't generate it cause the server which generates the code is external.

Here is what I've tried:

  1.  $.ajax({
  2.   dataType: 'jsonp',
  3.   url: 'http://nvmodules.netvibes.com/widget/json?uwaUrl=http://www.netvibes.com/api/uwa/examples/digg.xhtml',
  4.   success: function () {
  5.     // doesn't even reach this point, the error already goes off
  6.   },
  7. });
But I get an error (firefox console says: invalid label).

Couldnt make it work using the get method. And using other data type just would make the incoming data as null (even including ?callback=? in the url).