JSON Retrieve

After mapping, I coded this to success event handler to retrieve JSON data :

var t = predictions[1].t;
var v = predictions[1].v;

But it does not get any values....
How should I fix this?
Thanks!

{
"predictions" : [

{
"t":"2014-11-05 00:00",
"v":"0.183"
},
{
"t":"2014-11-05 00:06",
"v":"0.202"
},
{
"t":"2014-11-05 00:12",
"v":"0.224"
},
{
"t":"2014-11-05 00:18",
"v":"0.251"
},
{
"t":"2014-11-05 00:24",
"v":"0.282"
},
{
"t":"2014-11-05 00:30",
"v":"0.316"
},
{
"t":"2014-11-05 00:36",
"v":"0.354"
1 person has
this question
+1
This topic is no longer open for comments or replies.