[#nlohmann-basic_json-00-to_msgpack-07]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::to&lowbar;msgpack
:relfileprefix: ../../
:mrdocs:

create a MessagePack serialization of a given JSON value

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
to&lowbar;msgpack(
    xref:nlohmann/basic_json-00.adoc[basic&lowbar;json] const& j,
    detail::output&lowbar;adapter&lt;char&gt; o);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *j*
| a class to store JSON values
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
