JSON for Modern C++  3.7.0

◆ to_json()

template<typename , typename >
template<typename BasicJsonType , typename ValueType >
static auto nlohmann::adl_serializer< typename, typename >::to_json ( BasicJsonType &  j,
ValueType &&  val 
) -> decltype(::nlohmann::to_json(j, std::forward<ValueType>(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 3715 of file json.hpp.