[#nlohmann-basic_json-00-to_bson-01] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.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-00.adoc[basic_json] const& j); ---- == Parameters [cols=2] |=== | Name | Description | *j* | a class to store JSON values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#