If you just want to load that JSON object and access the "city" field, use jQuery's getJSON method to get a native JS object in response.
$.getJSON( "http://api.db-ip.com/addrinfo?addr=8.8.8.8&api_key=key", function(data) {
// do something with data.city;
});
However, in your case, you're trying to make a cross-domain JSON request -- not allowed. Since db-ip.com doesn't allow it, you'll have to proxy the request using PHP.
Set up "dbip.php" on your server as a proxy (cf. http://jquery-howto.blogspot.com/2009/04/cross-domain-ajax-querying-with-jquery.html)
Then you just load JSON from dbip.php on your own server, which queries db-ip.com for you. The browser is happy because the AJAX request it makes doesn't cross domain names.
db-ip.comyour domain or is it an external resource?db-ipdoesn't seem to have CORS nor JSONP.