create a UBJSON serialization of a given JSON value

Synopsis

Declared in <nlohmann/json.hpp>

static
void
to_ubjson(
    basic_json const& j,
    /* implementation-defined */::output_adapter<uint8_t> o,
    bool const use_size = false,
    bool const use_type = false);

Parameters

Name

Description

j

JSON value to serialize

o

output adapter to write the serialization to

use_size

whether to add size annotations to container types

use_type

whether to add type annotations to container types (must be combined with use_size = true)

Created with MrDocs