I have a complex json file that I have to handle with javascript to make it hierarchical, in order to later build a tree. Every entry of the json has : currentPath : a uniqu