[#nlohmann-adl_serializer-from_json-01] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/adl_serializer.adoc[adl_serializer]::from_json :relfileprefix: ../../ :mrdocs: convert a JSON value to any value type == Synopses Declared in `<nlohmann/adl_serializer.hpp>` convert a JSON value to any value type [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename BasicJsonType, typename TargetType = ValueType> static decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})) xref:nlohmann/adl_serializer/from_json-05.adoc[from_json](BasicJsonType&& j) noexcept(/* see-below */); ---- [.small]#xref:nlohmann/adl_serializer/from_json-05.adoc[_» more..._]# convert a JSON value to any value type [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename BasicJsonType, typename TargetType = ValueType> static decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) xref:nlohmann/adl_serializer/from_json-06.adoc[from_json]( BasicJsonType&& j, TargetType& val) noexcept(/* see-below */); ---- [.small]#xref:nlohmann/adl_serializer/from_json-06.adoc[_» more..._]# == Return Value * the JSON value converted to _TargetType_ * nothing; the result is written to _val_ == Parameters [cols="1,4"] |=== | Name| Description | *j* | JSON value to read from | *val* | value to write the converted result to |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#