JSON for Modern C++ 3.10.3

◆ to_json()

template<typename ValueType , typename >
template<typename BasicJsonType , typename TargetType = ValueType>
static auto nlohmann::adl_serializer< ValueType, typename >::to_json ( BasicJsonType &  j,
TargetType &&  val 
) -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
inlinestaticnoexcept

This function is usually called by the constructors of the basic_json class.

Parameters
[in,out]jJSON value to write to
[in]valvalue to read from

Definition at line 5080 of file json.hpp.