John Montgomery John Montgomery - 4 months ago 8
jQuery Question

I'm unable to get KEY : VALUE after paring a message string

After parsing ( jQuery ) I have the following in console.log

[[{"senttime":"Sun, 24 Jul 2016 16:43:59 GMT","signal":"sell","signalmessage":"SELL"}],"14693786401252020","14693786401252020"]


I need to retrieve the KEY's senttime, signal and signalmessage with corresponding values ::: Any assistance would be appreciated :::

Answer

data[0][0].senttime , data[0][0].signal , data[0][0].signalmessage

Working Example to retreive senttime :

var data = [
  [{
    "senttime": "Sun, 24 Jul 2016 16:43:59 GMT",
    "signal": "sell",
    "signalmessage": "SELL"
  }], "14693786401252020", "14693786401252020"
];
var mytime = data[0][0].senttime;
console.log(mytime);