nlohmann::basic_json::to_cbor

create a CBOR serialization of a given JSON value

Synopsis

Declared in <nlohmann/json.hpp>

static
std::vector<uint8_t>
to_cbor(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