I'm writing a script in javascript(actually a chrome extension) and I need an object that I can write to it like this(sorry, don't know how to explain it better) and then I convert it to string with format of json.

id[129].weekDay[6].hour[23] = 0
Here, id is an array, that each element in it contain another array(weeksDay) and in that array each contain another array(hour).
The id indices are unlimited, for weekDay 7 and hour 24.

And I can't create it using literals, since it would be lots of writing!

I searched in google but i couldn't find what I wanted. Actually don't know the best keyword to search.(objects in arrays?)

I don't know what exactly it is called, I can write it's declaration in VB.NET if that helps you.