Crossfire Server, Trunk
|
default JSONSerializer template argument More...
#include <json.hpp>
Static Public Member Functions | |
template<typename BasicJsonType , typename TargetType = ValueType> | |
static auto | from_json (BasicJsonType &&j) noexcept(noexcept(::nlohmann::from_json(std::forward< BasicJsonType >(j), detail::identity_tag< TargetType > {}))) -> decltype(::nlohmann::from_json(std::forward< BasicJsonType >(j), detail::identity_tag< TargetType > |
convert a JSON value to any value type More... | |
template<typename BasicJsonType , typename TargetType = ValueType> | |
static auto | from_json (BasicJsonType &&j, TargetType &val) noexcept(noexcept(::nlohmann::from_json(std::forward< BasicJsonType >(j), val))) -> decltype(::nlohmann::from_json(std::forward< BasicJsonType >(j), val), void()) |
convert a JSON value to any value type More... | |
template<typename BasicJsonType , typename TargetType = ValueType> | |
static auto | to_json (BasicJsonType &j, TargetType &&val) noexcept(noexcept(::nlohmann::to_json(j, std::forward< TargetType >(val)))) -> decltype(::nlohmann::to_json(j, std::forward< TargetType >(val)), void()) |
convert any value type to a JSON value More... | |
default JSONSerializer template argument
This serializer ignores the template arguments and uses ADL (argument-dependent lookup) for serialization.
|
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 |
|
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 |
Definition at line 4940 of file json.hpp.
References nlohmann::detail::from_json().
|
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 |
Definition at line 4977 of file json.hpp.
References nlohmann::detail::to_json().