[#nlohmann-basic_json-05-from_msgpack-01] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-05.adoc[basic_json<>]::from_msgpack :relfileprefix: ../../ :mrdocs: create a JSON value from an input in MessagePack format (iterator pair, or iterator+sentinel pair for C++20 ranges support) == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename IteratorType, typename SentinelType = IteratorType> requires detail::can_compare_ne<IteratorType, SentinelType>::value [[nodiscard]] static xref:nlohmann/basic_json-00.adoc[basic_json<>] from_msgpack( IteratorType first, SentinelType last, bool const strict = true, bool const allow_exceptions = true); ---- == Return Value a class to store JSON values [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#