[#nlohmann-basic_json-00-to_ubjson-06] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::to_ubjson :relfileprefix: ../../ :mrdocs: create a UBJSON serialization of a given JSON value == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void to_ubjson( xref:nlohmann/basic_json-00.adoc[basic_json] const& j, detail::output_adapter<uint8_t> o, bool const use_size = false, bool const use_type = false); ---- == Parameters [cols=2] |=== | Name | Description | *j* | a class to store JSON values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#