i would like to add an index in my array:

here is my loop 

```
for(j=0; j< data.data.tickets.length; j++) {
  var created_at = data.data.tickets[j].created_at;
  var tickettitle = data.data.tickets[j].subject;
  cleartab[requesterid]['tickets'] = [{"created":created_at, "titre":tickettitle}];   
}

```

And it gave me this array:
[![enter image description here](https://i.stack.imgur.com/SlvRF.png)](https://i.stack.imgur.com/SlvRF.png)

The problem is that my key in `tickets[]`is always rewrite so it is not iterate. Because my users have many tickets so every index is a ticket and every ticket have a date and a title.