ROOT 6.14/05 Reference Guide |
default JSONSerializer template argument
This serializer ignores the template arguments and uses ADL (argument-dependent lookup) for serialization.
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 </mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/io/io/res/json.hpp>
|
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).
[in] | j | JSON value to read from |
[in,out] | val | value to write to |
|
inlinestaticnoexcept |
convert any value type to a JSON value
This function is usually called by the constructors of the basic_json class.
[in,out] | j | JSON value to write to |
[in] | val | value to read from |