I have a problem here. You see, I have a JSON like:
All the elements are equals.
The thing is, when I execute this code:
var arrayProcesos = data['arrayProcesos'];
for(var k=0, len = arrayProcesos.length; k < len; k++) { //... }
The for iterates over the array (6 positions) and then goes to the position 6 (yes, the "7th element", I don't know why because it doesn't exist), and there it returns undefined.
Do you know how it can be possible and how to fix it?
EDIT:
Here is the code that returns the "undefined" error:
var proceso = arrayProcesos[k];
var nombreProceso = proceso['procesos']['denominacion'];
When it try to take ['procesos'], the Console says "Uncaught TypeError: Cannot read property 'procesos' of undefined"