TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ 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

convert any value type to a JSON value

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 5018 of file json.hpp.

5021 {
5022 ::nlohmann::to_json(j, std::forward<TargetType>(val));
5023 }