score:2

Accepted answer

You can achieve that on client side this way:

var d = [{"x":"58770"},{"x":"79035"},{"x":"84030"},{"x":"90145"},{"x":"95630"},{"x":"102580"},{"x":"108950"},{"x":"113615"},{"x":"118765"},{"x":"124055"}],
    dLen = d.length,
    ret = [];

for(var i = 0; i < dLen; i++) { 
    ret.push( parseInt(d[i].x, 10));
}

// ret contains: [58770, 79035, 84030, 90145, 95630, 102580, 108950, 113615, 118765, 124055]

Related Articles