Template Struct adl_serializer
Defined in File json.hpp
Struct Documentation
-
template<typename ValueType, typename>
struct adl_serializer namespace for Niels Lohmann
default JSONSerializer template argument
See also
- Since
version 1.0.0
This serializer ignores the template arguments and uses ADL (argument-dependent lookup) for serialization.
Public Static Functions
-
template<typename BasicJsonType, typename TargetType = ValueType>
static inline 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
-
template<typename BasicJsonType, typename TargetType = ValueType>
static inline 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
-
template<typename BasicJsonType, typename TargetType = ValueType>
static inline 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