Ver originalfor(var i=0; i<response.length;i++){ var item = response[i]["ts"]+','+response[i]["v"];consumo.push(item); }