I get a "This operation would create a malformed document" error when trying to output a file with a collection of structs to JSON or YAML.