[#nlohmann-basic_json-00-to_bjdata-01] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::to_bjdata :relfileprefix: ../../ :mrdocs: create a BJData 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_bjdata( xref:nlohmann/basic_json-00.adoc[basic_json] const& j, bool const use_size = false, bool const use_type = false, xref:nlohmann/basic_json-00/bjdata_version_t.adoc[bjdata_version_t] const version = bjdata_version_t::draft2); ---- == Parameters [cols=2] |=== | Name | Description | *j* | a class to store JSON values | *version* | how to encode BJData |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#