Possible Duplicate:
I have a nested data structure / JSON, how can I access a specific value?
I am JavaScript beginner and have created the following array of objects in Javascript:
var values = [[{
x_value: {
x_axis: 1,
y_axis: 1.8445
},
y_value: {
x_axis: 1,
y_axis: 1.2445
},
z_value: {
x_axis: 1,
y_axis: 1.1445
}
}],[{
x_value: {
x_axis: 2,
y_axis: 1.35
},
y_value: {
x_axis: 2,
y_axis: 1.245
},
z_value: {
x_axis: 22,
y_axis: 1.345
}
}],[{
x_value: {
x_axis: 3,
y_axis: 1.087
},
y_value: {
x_axis: 3,
y_axis: 1.125
},
z_value: {
x_axis: 3,
y_axis: 1.95
}
}]];
I would like to access the value of the x_axis of, say, y_value in values[0], what methods should I use? Thanks in advance