I played around with the hierarchy - have you checked the exported .glb? It should have the hierarchy built in. Is this what you're looking for? Or is it something else?