[#nlohmann-basic_json-0c-to_cbor-05] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.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 void to_cbor( xref:nlohmann/basic_json-0c.adoc[basic_json] const& j, /* implementation-defined */::output_adapter<char> o); ---- == Parameters [cols="1,4"] |=== | Name| Description | *j* | JSON value to serialize | *o* | output adapter to write the serialization to |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#