Reputation: 1029
i have this json :
{
"series": [
{
"name": "RegularDeposit",
"data": [
22, << == i wanted to have access on this line only
33,
44
]
}
]
}
i begin with output like series.data
But it displaying Object Object
.
Upvotes: 0
Views: 56
Reputation: 123
Maybe you need series[0].data[0]
?
Series is an array in your example.
Upvotes: 1
Reputation: 10683
try this :
var data={
"series": [{
"name": "RegularDeposit",
"data": [
22,
33,
44
]
}
]}
alert(data.series[0].data[0]);
Upvotes: 0