Flatten nested hash/array structures into tables