if i want to create the export mapping in which the loop can be nested and no of nested loop is not fix then how can we achieve it .

I want to create the export mapping for BOM in which parent can have childs and child can again have childs and so on , in my example i have added a json structure for export mapping  till BOM’s 4th level so after export to json activity  i am getting json till 4th level only , but if i have BOM till 100 level  how should i implement it .   
1 answers

I believe You need to add all those levels(the number of child levels you want) that's the only thing that you can do…

There is no such condition how many levels it has to come dynamically.