|
◆ 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] | j | JSON value to write to |
[in] | val | value to read from |
Definition at line 5080 of file json.hpp.
|