I think I understand your question now with the comments you added.
This section of the documentation can help you. You can declare your data object like this:
// data must be a function
data() {
return {
items: {
i: {}
}
}
}
And later add items like this:
vm.$set(this.items.i, 'one', true);
vm.$set(this.items.i, 'two', false);
// and later retrieve
let key = 'one';
let a = vm.items.i[key];
Remember that since data must be a function in components, you can potentially avoid the $set() calls and setup your data object at "construction time" in the data() function.
Original answer
Not to sound condescending, but I suggest you read up some more on Javascript basics. An associative array as you call it is simply an object in Javascript. This doesn't have much to do with vue.js.
Here's how to do it:
data: {
items: {
i: {
one: true,
two: false,
}
}
}