O want to display data with a alert in function of a variable (test), here is my code but it doesn’t’t work :
var Content = [{
"01":[{"text":"blablablablabla","apicole":"abeille :o"}],
"02":[{"text":"blobloblobloblo","apicole":"bzzzz :)"}],
"03":[{"text":"blibliblibli","apicole":"bzzoooo ;)"}]
}];
var test = apicole ;
alert(Content[0][month][0].test);
Try accessing the final item with brackets instead of as a prop:
Make sure that month is defined