nlohmann::basic_json::to_cbor

create a CBOR serialization of a given JSON value

Synopsis

Declared in <nlohmann/json.hpp>

static
void
to_cbor(
    basic_json const& j,
    detail::output_adapter<uint8_t> o);

Parameters

NameDescription
ja class to store JSON values