msgpack-cxx

C++ library for serializing and deserializing data in MessagePack format.

brewmacoslinux
Try with needOr install directly
Source

About

MessagePack implementation for C++ / msgpack.org[C++]

Examples

serialize objects to compact binary format in C++$ # Include in C++ project: #include <msgpack.hpp>
deserialize binary data back to C++ objects$ msgpack::object_handle oh = msgpack::unpack(buffer, size);
pack C++ data structures into binary format$ msgpack::sbuffer buffer; msgpack::pack(buffer, my_data);
exchange data between different programming languages$ # Use msgpack-cxx to create language-agnostic binary format
reduce message size for network transmission$ # MessagePack produces smaller binary than JSON or XML