function successHandler(data) {
$("#subSiteTitle").keypress(function () {
var jsonObject = JSON.parse(data.body);
var dataArr = $.makeArray(jsonObject.d.results);
var resultArr = $.map(dataArr, function (item) {
window.location = item.Url;
});
$('#subSiteTitle').autocomplete({
source: resultArr
});
if item.url does not contain http:// you will have to add it.