I'm trying to parse JSON file but I'm facing some problems

```
{"prices": {"XRP/ETH": "0.0011228", "LTC/XRP": "187.7162", "BCH/INR": "53200.000", "LTC/BCH": "0.0729828", "LTC/BTC": "0.01567781", "LTC/ETH": "0.1948464", "XRP/BTC": "0.00006908", "BCH/ETH": "1.6930769", "XRP/INR": "32.000", "XRP/BCH": "0.0003879", "BCH/BTC": "0.22700587", "ETH/INR": "30500.000", "LTC/INR": "5280.000", "BTC/INR": "453000.000", "ETH/BTC": "0.07717977"}, "market": {"XRP/ETH": {"top_ask": "0.0010922 ETH", "top_bid": "0.0009030 ETH"}, "LTC/XRP": {"top_ask": "193.2886 XRP", "top_bid": "165.0000 XRP"}, "BCH/INR": {"top_ask": "56000.000 INR", "top_bid": "46100.000 INR"}, "LTC/BCH": {"top_ask": "0.1249458 BCH", "top_bid": "0.0942857 BCH"}, "LTC/BTC": {"top_ask": "0.01280000 BTC", "top_bid": "0.01147826 BTC"}, "LTC/ETH": {"top_ask": "0.1965870 ETH", "top_bid": "0.1600000 ETH"}, "XRP/BTC": {"top_ask": "0.00007111 BTC", "top_bid": "0.00006478 BTC"}, "BCH/ETH": {"top_ask": "1.9112628 ETH", "top_bid": "1.3969697 ETH"}, "XRP/INR": {"top_ask": "32.000 INR", "top_bid": "29.800 INR"}, "XRP/BCH": {"top_ask": "0.0006941 BCH", "top_bid": "0.0005321 BCH"}, "BCH/BTC": {"top_ask": "0.12444444 BTC", "top_bid": "0.10021739 BTC"}, "ETH/INR": {"top_ask": "33000.000 INR", "top_bid": "29300.000 INR"}, "LTC/INR": {"top_ask": "5760.000 INR", "top_bid": "5280.000 INR"}, "BTC/INR": {"top_ask": "460000.000 INR", "top_bid": "450000.000 INR"}, "ETH/BTC": {"top_ask": "0.07333333 BTC", "top_bid": "0.06369565 BTC"}}}

```

I'm trying to parse it in Javascript,but I receive an error undefined object,

My javascript Code:-

```
request(ticker, function (err, body) {
    var a = JSON.parse(body.body);
    var p= a.prices;
    console.log(p[0]);
    console.log(p.length);

});

```

I expect console.log to print out first iteration in the JSON that is "XRP/ETH", also I want to find the length of the array but I receive an undefined error