How can I get the index of elements in nested object array of many levels. For example I have the following nested object called Object: