Filter response into hierarchical structure where if child object is parent of another child then that details should be under new parent
I have list hierarchy object, which can have list of grouping object each having single parent and multiple child values to parent_value object.Input from java object looks like below: