[#nlohmann-basic_json-0c-to_bson-07] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::to_bson :relfileprefix: ../../ :mrdocs: create a BSON serialization of a given JSON value == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::vector<uint8_t> to_bson(xref:nlohmann/basic_json-0c.adoc[basic_json] const& j); ---- == Return Value a BSON serialization of _j_ as a byte vector == Parameters [cols="1,4"] |=== | Name| Description | *j* | JSON value to serialize |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#