How to add an index to the object property name

There’s not enough information in the title to figure out what you’re trying to do. If you still need help then please post a full description of the problem, preferably with some code to help us to understand what you’re trying to do.