I would like to know how I can go through this Array with JavaScript until I reach the level that says item highlighted with yellow
{
"SOAP-ENV:Envelope": {
"$": {
"SOAP-ENV:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/",
"xmlns:SOAP-ENV": "http://schemas.xmlsoap.org/soap/envelope/",
"xmlns:xsd": "http://www.w3.org/2001/XMLSchema",
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
"xmlns:SOAP-ENC": "http://schemas.xmlsoap.org/soap/encoding/"
},
"SOAP-ENV:Body": {
"ns1:creditosVencidosResponse": {
"$": {
"xmlns:ns1": "http://192.168.0.194/testMobilSoft/servicio.php?wsdl"
},
"datos": {
"$": {
"xsi:type": "SOAP-ENC:Array",
"SOAP-ENC:arrayType": ":[1]"
},
"item": {
"$": {
"xsi:type": "xsd:"
},
"item": [
{
"cod_credito": {
"_": "2025",
"$": {
"xsi:type": "xsd:string"
}
},
"identificacion_cliente": {
"_": "234234",
"$": {
"xsi:type": "xsd:string"
}
},
"no_pagare": {
"_": "3361",
"$": {
"xsi:type": "xsd:string"
}
},
"tipo_credito": {
"_": "0",
"$": {
"xsi:type": "xsd:string"
}
},
"oficina": {
"_": "1",
"$": {
"xsi:type": "xsd:string"
}
},
"estado_libranza": {
"_": "DESEMBOLSO",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_aprobacion": {
"_": "2014-01-20",
"$": {
"xsi:type": "xsd:string"
}
},
"monto_credito": {
"_": "4015776",
"$": {
"xsi:type": "xsd:string"
}
},
"valor_descuento": {
"_": "593852",
"$": {
"xsi:type": "xsd:string"
}
},
"valor_desembolso": {
"_": "3323324",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_desembolso": {
"_": "2014-01-20",
"$": {
"xsi:type": "xsd:string"
}
},
"cuotas": {
"_": "60",
"$": {
"xsi:type": "xsd:string"
}
},
"valor_cuota": {
"_": "110000",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_inicio_descuento": {
"_": "2014-01-30",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_ultimo_pago": {
"_": "2018-03-30",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_proximo_pago": {
"_": "2018-04-30",
"$": {
"xsi:type": "xsd:string"
}
},
"dias_mora": {
"_": "24",
"$": {
"xsi:type": "xsd:string"
}
},
"saldo_capital": {
"_": "998506",
"$": {
"xsi:type": "xsd:string"
}
},
"pagaduria": {
"_": "2",
"$": {
"xsi:type": "xsd:string"
}
},
"prop_cartera": {
"_": "1",
"$": {
"xsi:type": "xsd:string"
}
},
"nombre": {
"_": "NOMBRE DEL TERCERO",
"$": {
"xsi:type": "xsd:string"
}
},
"centro_costo": {
"_": "1",
"$": {
"xsi:type": "xsd:string"
}
},
"tipo_documento": {
"_": "1",
"$": {
"xsi:type": "xsd:string"
}
},
"apellido1": {
"_": "APELLIDO",
"$": {
"xsi:type": "xsd:string"
}
},
"apellido2": {
"_": "APELLIDO 2",
"$": {
"xsi:type": "xsd:string"
}
},
"nombre1": {
"_": "NOMBRE 1",
"$": {
"xsi:type": "xsd:string"
}
},
"nombre2": {
"_": "NOMBRE 2",
"$": {
"xsi:type": "xsd:string"
}
},
"lugar_nacimiento": {
"_": "BARRANQUILLA - ATLANTICO",
"$": {
"xsi:type": "xsd:string"
}
},
"estado_civil": {
"_": "C",
"$": {
"xsi:type": "xsd:string"
}
},
"sexo": {
"_": "FEMENINO",
"$": {
"xsi:type": "xsd:string"
}
},
"tipo_vivienda": {
"_": "FAMILIAR",
"$": {
"xsi:type": "xsd:string"
}
},
"tiempo_vivienda": {
"_": "12",
"$": {
"xsi:type": "xsd:string"
}
},
"nivel_educativo": {
"_": "6",
"$": {
"xsi:type": "xsd:string"
}
},
"ocupacion": {
"$": {
"xsi:nil": "true"
}
},
"direccion": {
"_": "KRA ",
"$": {
"xsi:type": "xsd:string"
}
},
"telefono": {
"_": "123123",
"$": {
"xsi:type": "xsd:string"
}
},
"celular": {
"_": "12312312",
"$": {
"xsi:type": "xsd:string"
}
},
"correo": {
"_": "no tiene",
"$": {
"xsi:type": "xsd:string"
}
},
"ciudad": {
"_": "8001",
"$": {
"xsi:type": "xsd:string"
}
},
"fecha_nacimiento": {
"_": "1955-05-08",
"$": {
"xsi:type": "xsd:string"
}
},
"direccion_correspondencia": {
"_": "KRA",
"$": {
"xsi:type": "xsd:string"
}
},
"lugar_correspondencia": {
"_": "8001",
"$": {
"xsi:type": "xsd:string"
}
}
}
]
}
}
}
}
}
And what I try to do is to make it look like this because it was an XML that I am transformed into a JSON
{
"datos":{
"cod_credito":2025,
"identificacion_cliente":12345,
"no_pagare":4321,
"...":"..."
}}