nlohmann::basic_json::to_ubjson

create a UBJSON serialization of a given JSON value

Synopsis

Declared in <nlohmann/json.hpp>

static
void
to_ubjson(
    basic_json const& j,
    detail::output_adapter<char> o,
    bool const use_size = false,
    bool const use_type = false);

Parameters

NameDescription
ja class to store JSON values