JSON for Modern C++ 3.10.4

◆ from_json() [1/2]

template<typename ValueType , typename >
template<typename BasicJsonType , typename TargetType = ValueType>
static auto nlohmann::adl_serializer< ValueType, typename >::from_json ( BasicJsonType &&  j) -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
inlinestaticnoexcept

This function is usually called by the get() function of the basic_json class (either explicit or via conversion operators).

Note
This function is chosen for value types which are not default-constructible.
Parameters
[in]jJSON value to read from
Returns
copy of the JSON value, converted to ValueType

Definition at line 5076 of file json.hpp.