Logo ROOT   6.16/01
Reference Guide
List of all members | Static Public Member Functions | List of all members
nlohmann::adl_serializer< typename, typename > Struct Template Reference

template<typename = void, typename = void>
struct nlohmann::adl_serializer< typename, typename >

default JSONSerializer template argument

This serializer ignores the template arguments and uses ADL (argument-dependent lookup) for serialization.

Definition at line 911 of file json.hpp.

Static Public Member Functions

template<typename BasicJsonType , typename ValueType >
static void from_json (BasicJsonType &&j, ValueType &val) noexcept(noexcept(::nlohmann::from_json(std::forward< BasicJsonType >(j), val)))
 convert a JSON value to any value type More...
 
template<typename BasicJsonType , typename ValueType >
static void to_json (BasicJsonType &j, ValueType &&val) noexcept(noexcept(::nlohmann::to_json(j, std::forward< ValueType >(val))))
 convert any value type to a JSON value More...
 

#include </home/sftnight/build/workspace/root-makedoc-v616/rootspi/rdoc/src/v6-16-00-patches/io/io/res/json.hpp>

Member Function Documentation

◆ from_json()

template<typename = void, typename = void>
template<typename BasicJsonType , typename ValueType >
static void nlohmann::adl_serializer< typename, typename >::from_json ( BasicJsonType &&  j,
ValueType &  val 
)
inlinestaticnoexcept

convert a JSON value to any value type

This function is usually called by the get() function of the basic_json class (either explicit or via conversion operators).

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

Definition at line 923 of file json.hpp.

◆ 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

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


The documentation for this struct was generated from the following file: