Iterate over JSON AJAX response
<p>I need to go through each hotel key and go inside rates to retrieve some info, how could I get values of them inside this JSON on JavaScript:</p>

<pre><code>[
    {
        "auditData": {
            "processTime": "1545",
            "timestamp": "2016-04-08 04:33:17.145",
            "requestHost": "66.226.74.194",
            "serverId": "sa37AUX3ROLBLIS.env",
            "environment": "[int]",
            "release": "2cb1bad878d2195c9b508e2007ef96616007dacb",
            "internal": "bz66k2etuxrt5q5h2zyf3jf6|MX|03|HA|1|3|0|1|3|N|||||||||1"
        },
        "hotel": {
            "checkIn": "2016-04-11",
            "checkOut": "2016-04-12",
            "code": 87399,
            "name": "Premier",
            "categoryCode": "3EST",
            "categoryName": "3 ESTRELLAS",
            "destinationCode": "MDF",
            "destinationName": "Ciudad de Mexico",
            "zoneCode": 10,
            "zoneName": "Downtown",
            "latitude": "19.431353",
            "longitude": "-99.156457",
            "rooms": [
                {
                    "code": "DBL.2D",
                    "name": "DOBLE DOS CAMAS DOBLES",
                    "rates": [
                        {
                            "rateKey": "20160411|20160412|W|71|87399|DBL.2D|CGW-TODOS1|BB||1~2~1|2|N@-644903865",
                            "rateClass": "NOR",
                            "rateType": "BOOKABLE",
                            "net": "687.31",
                            "discount": "111.89",
                            "discountPCT": "14.00",
                            "sellingRate": "799.20",
                            "rateComments": "Incluye desayuno americano para adulto y menor\nel hotel no cuenta con aire acondicionado  ",
                            "paymentType": "AT_WEB",
                            "packaging": false,
                            "boardCode": "BB",
                            "boardName": "ALOJAMIENTO Y DESAYUNO",
                            "cancellationPolicies": [
                                {
                                    "amount": "799.20",
                                    "from": "2016-04-08T23:59:00-05:00"
                                }
                            ],
                            "rateBreakDown": {
                                "rateDiscounts": [
                                    {
                                        "code": "DN",
                                        "name": "Descuento Niño",
                                        "amount": "-281.68"
                                    }
                                ]
                            },
                            "rooms": 1,
                            "adults": 2,
                            "children": 1,
                            "childrenAges": "2",
                            "offers": [
                                {
                                    "code": "9001",
                                    "name": "Descuento niños",
                                    "amount": "-281.68"
                                }
                            ]
                        }
                    ]
                }
            ],
            "totalSellingRate": "799.20",
            "totalNet": "687.31",
            "currency": "MXN"
        }
    },
    {
        "auditData": {
            "processTime": "1543",
            "timestamp": "2016-04-08 04:33:19.469",
            "requestHost": "66.226.74.194",
            "serverId": "sa3RKSJACHXE79K.env",
            "environment": "[int]",
            "release": "2cb1bad878d2195c9b508e2007ef96616007dacb",
            "internal": "bz66k2etuxrt5q5h2zyf3jf6|MX|03|HA|1|3|0|3|3|N|||||||||1"
        },
        "hotel": {
            "checkIn": "2016-04-11",
            "checkOut": "2016-04-12",
            "code": 87399,
            "name": "Premier",
            "categoryCode": "3EST",
            "categoryName": "3 ESTRELLAS",
            "destinationCode": "MDF",
            "destinationName": "Ciudad de Mexico",
            "zoneCode": 10,
            "zoneName": "Downtown",
            "latitude": "19.431353",
            "longitude": "-99.156457",
            "rooms": [
                {
                    "code": "SGL.DB",
                    "name": "INDIVIDUAL CAMA DOBLE",
                    "rates": [
                        {
                            "rateKey": "20160411|20160412|W|71|87399|SGL.DB|CGW-TODOS1|BB||1~1~1|5|N@-644903865",
                            "rateClass": "NOR",
                            "rateType": "BOOKABLE",
                            "net": "687.31",
                            "discount": "111.89",
                            "discountPCT": "14.00",
                            "sellingRate": "799.20",
                            "rateComments": "Incluye desayuno americano para adulto y menor\nel hotel no cuenta con aire acondicionado  ",
                            "paymentType": "AT_WEB",
                            "packaging": false,
                            "boardCode": "BB",
                            "boardName": "ALOJAMIENTO Y DESAYUNO",
                            "cancellationPolicies": [
                                {
                                    "amount": "799.20",
                                    "from": "2016-04-08T23:59:00-05:00"
                                }
                            ],
                            "rateBreakDown": {
                                "rateDiscounts": [
                                    {
                                        "code": "DN",
                                        "name": "Descuento Niño",
                                        "amount": "-641.98"
                                    }
                                ]
                            },
                            "rooms": 1,
                            "adults": 1,
                            "children": 1,
                            "childrenAges": "5",
                            "offers": [
                                {
                                    "code": "9001",
                                    "name": "Descuento niños",
                                    "amount": "-641.98"
                                }
                            ]
                        }
                    ]
                }
            ],
            "totalSellingRate": "799.20",
            "totalNet": "687.31",
            "currency": "MXN"
        }
    }
]
</code></pre>

<p>I was trying to use <code>for (var key in data)</code>, where <code>data</code> is the JSON response from AJAX.</p>