Skip to content

v_2_0_cpp_json

Andreas Haferburg edited this page Feb 10, 2022 · 4 revisions

Using msgpack-c with JSON

msgpack-c partially supported JSON. If you use msgpack-c and JSON for Modern C++ together, most of use-cases are covered.

conversion table

from \ to MessagePack formatted byte stream msgpack::object JSON
MessagePack formatted byte stream - unpack Not directly supported. Create msgpack::object first, or use other libraries such as JSON for Modern C++
msgpack::object pack - apply std::ostream <<
JSON Not supported. Use other libraries such as JSON for Modern C++ Not supported -