JSON for Modern C++  2.1.1

◆ to_json()

template<typename = void, typename = void>
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 939 of file json.hpp.