I have the below array structure containing objects. I need to get the parent element of a given element. e.g. PurchaseOrderLineTaxNext has PurchaseOrderL
PurchaseOrderLineTaxNext
PurchaseOrderL