Maybe there are versions of this that work really well in other languages that I don't know about, but the impression I have is that serializing objects for network communication is much better handled using formats like protobufs or msgpack or even JSON