[#nlohmann-basic_json-00-from_msgpack-06]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::from&lowbar;msgpack
:relfileprefix: ../../
:mrdocs:

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
&lsqb;&lsqb;nodiscard, deprecated&rsqb;&rsqb;
static
xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]
from&lowbar;msgpack(
    T const* ptr,
    std::size&lowbar;t len,
    bool const strict = true,
    bool const allow&lowbar;exceptions = true);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]: Since 3&period;8&period;0&semi; use from&lowbar;msgpack(ptr, ptr &plus; len). Use of this entity is allowed but discouraged.
====
== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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