[#nlohmann-basic_json-0e-to_ubjson-0a] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0e.adoc[basic_json<>]::to_ubjson :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::vector<uint8_t> to_ubjson( xref:nlohmann/basic_json-00.adoc[basic_json] const& j, bool const use_size = false, bool const use_type = false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#