nlohmann::basic_json::to_msgpack

create a MessagePack serialization of a given JSON value

Synopsis

Declared in <nlohmann/json.hpp>

static
std::vector<uint8_t>
to_msgpack(basic_json const& j);

Return Value

A standard container which offers fixed time access to individual elements in any order.

Parameters

NameDescription
ja class to store JSON values