JSON for Modern C++  3.7.3

◆ 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())

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

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

Definition at line 3827 of file json.hpp.