JSON for Modern C++  3.0.1

◆ to_json()

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