jQuery UI Tooltip + JSON Data

jQuery UI Tooltip + JSON Data

Can anybody be so nice and tell me what I'm doing wrong?

I'm trying to load JSON data with $.getJSON(). I'd like to read data only for current element ID (ex. read only tooltip content for id="name" field). And... it's not working :(

  1.     $(".tool").tooltip({
  2.         content: function(response) {
  3.             $.getJSON('/static/tooltipcontent.json', function(data) {
  4.                 response($.map(data, function(item) {
  5.                     return item.name;
  6.                 }))
  7.             });
  8.         }
  9.         },
  10.     });

Does anybody see any issues here?