[#nlohmann-basic_json-00-to_cbor-05] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::to_cbor :relfileprefix: ../../ :mrdocs: create a CBOR 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_cbor(xref:nlohmann/basic_json-00.adoc[basic_json] const& j); ---- == Return Value A standard container which offers fixed time access to individual elements in any order. == Parameters [cols="1,4"] |=== |Name|Description | *j* | a class to store JSON values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#