I think you may misunderstand, the | above is in the |> operator, which just applies that anonymous function.
No, I think that delimited formats should be kept simple. They are not equipped to support any kind of structure.
I would suggest you explore JSON-based solutions: some of them can serialize structures, and they are plain text. Look at the JSON packages in the registry.