Record indented data structures and output them in various formats