Tbh it’s kind of funny folks keep reinventing the wheel when we have had portable, standardized serialization format for around 50 years: DER.
The only truly fully featured, well-maintained open source implementation for C/C++ seems to be asn1c from Lev Walkin and the dev experience is a world away from what you get using something like Avro, CapnProto or Protobufs.
Really?