Assuming you have complete control on the incoming data, it should all be json, then there's an automatic 1-to-many relationship inside ETL (which you still need to map in the cmdb_rel_ci table).  There's an article somewhere by Siyou Li  (I think) which shows how to map a multilevel json.