Ajax call always return [object object] for textbox

sorry I have now verified it with getJSON and the url data is showing in fiddler however the data is xml array, its not with JSON format and hence data.Lengh cant be calculated.

$.getJSON(‘http://services.myportal.com/Comany/Name’, function(data) {
//var data_length = data.length;
//alert(data_length);
});

image
how can I get the length of array? All I need is total number of records. however xml data formating issue is not giving me the length. Please help