[#nlohmann-adl_serializer-from_json-06] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/adl_serializer.adoc[adl_serializer]::from_json :relfileprefix: ../../ :mrdocs: convert a JSON value to any value type == Synopsis Declared in `<nlohmann/adl_serializer.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename BasicJsonType, typename TargetType = ValueType> static decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) from_json( BasicJsonType&& j, TargetType& val) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))`. == Return Value 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]#