Is it worth considering some binary format that is standard-ish & whose toolset can write out text when viewing? I'm thinking https://capnproto.org .