Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
eCAL
Discontinued Please visit the new repository: https://github.com/eclipse-ecal/ecal (by continental)
-
json
A C++11 library for parsing and serializing JSON to and from a DOM container in memory. (by boostorg)
Would you rather use Google's Protocol Buffers or JSON+a library such as this one ? Or something else?
You want Cap'n Proto, the successor to Protobuf.
I would concider using eCAL since it blasts everything out of the water in terms of performance and comes with some handy tooling for inspection of messages in-travel.
If size and performance matter, then take a look at bitsery. * it might be 9x+ faster than cereal and 18x faster than protobuf. * size-wise, you might save 20-30% by default * on top of that you additional might opt-in into: * bit-level serialization control (e.g. if your values are in the range 1000-2000 it will take you 10bits, or use VLE) * backward-forward compatibility support * pointer support, including raw pointers with the ability to provide custom allocator. * and powerful extensions system, which allows you to further customize things in any way you want it :)