Library to convert between different hierarchical data representations