Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/05/2012, 14:31
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: como generar el array?

prueba así
Cita:
var obj = {"0":null,"5":{"5":true,"7":true},"7":{"0":true ,"5 ":true,"7":true}};

for(var i in obj) {
console.log(i, '-->' ,obj[i], 1);
for(var j in obj[i]) {
console.log(j, '-->' ,obj[i][j], 2);
}
}
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}