I'm trying to count the number of results in my $.ajax call.
    $.ajax({
        'async': true,
        'crossDomain': true,
        'url': 'XXX',
        'method': 'GET',
        'headers': {
            'key': 'XXX',
            'scope': 'XXX',
            'content-type': 'application/json',
            'cache-control': 'no-cache'
        },
        'processData': false,
        'data': {},
        error: function(jqXHR, textStatus, errorThrown) {
            // Default error
            log('error');
        },
        success: function(data, textStatus, jqXHR) {
            log('success');
            log(data);
            var ArrayContent = data.length;
            log(ArrayContent)
        }
    }).done(function(response) {
        log('done');
    });
My jSon response is Object {3858: Object, 4667: Object, 4668: Object, 4680: Object, 4710: Object}3858: Object4667: Object4668: Object4680: Object4710: Object__proto__: Object
I have tried several solutions found on this site, but I cant get any of them to work.
Any suggestion towards a solution would be very much appreciated.
-C
 
     
     
     
    