First: I\'m aware of other solutions like Removing unused information from JSON but I\'m looking for a more dynamic approach.
I have two json objects. The first one l