[#nlohmann-adl_serializer-from_json-0a7]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/adl_serializer.adoc[adl&lowbar;serializer]::from&lowbar;json
:relfileprefix: ../../
:mrdocs:

convert a JSON value to any value type

== Synopsis

Declared in `&lt;nlohmann&sol;adl&lowbar;serializer&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename BasicJsonType,
    typename TargetType = ValueType&gt;
static
decltype(&colon;&colon;nlohmann&colon;&colon;from&lowbar;json(std&colon;&colon;forward&lt;BasicJsonType&gt;(j), detail&colon;&colon;identity&lowbar;tag&lt;TargetType&gt; &lcub;&rcub;))
from&lowbar;json(BasicJsonType&& j) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `noexcept(&colon;&colon;nlohmann&colon;&colon;from&lowbar;json(std&colon;&colon;forward&lt;BasicJsonType&gt;(j), detail&colon;&colon;identity&lowbar;tag&lt;TargetType&gt;&lcub;&rcub;))`.


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