I'm developing a recursive method for a class which will return a complicated data structure (a list of dictionaries which will contain lists of dictionaries as values).
The data structure could be something like that:
list<map <string,list<map <string,list< map<string,list<...> > > >
How can I refer to this structure while defining returning types or parameters in the method? The problem I don't know how deep the structure is going to be.
Could something like list<map<string,T> > work??
BTW, maybe the data structure is no-sense, but I'm translating some code from Python and I have to do it like that.
Thanks in advance!