Mpk is a project mainly written in C++, it's free.
serialize over socket sample with messagepack
brew install poco brew install msgpack