21template<
typename ValueType,
typename>
26 template<
typename BasicJsonType,
typename TargetType = ValueType>
27 static auto from_json(BasicJsonType && j, TargetType& val)
noexcept(
36 template<
typename BasicJsonType,
typename TargetType = ValueType>
46 template<
typename BasicJsonType,
typename TargetType = ValueType>
47 static auto to_json(BasicJsonType& j, TargetType && val)
noexcept(
49 ->
decltype(
::wpi::to_json(j, std::forward<TargetType>(val)), void())
#define WPI_JSON_NAMESPACE_END
Definition: abi_macros.h:59
#define WPI_JSON_NAMESPACE_BEGIN
Definition: abi_macros.h:53
WPILIB_DLLEXPORT void from_json(const wpi::json &json, AprilTagFieldLayout &layout)
WPILIB_DLLEXPORT void to_json(wpi::json &json, const AprilTagFieldLayout &layout)
namespace for Niels Lohmann
Definition: adl_serializer.h:23
static auto to_json(BasicJsonType &j, TargetType &&val) noexcept(noexcept(::wpi::to_json(j, std::forward< TargetType >(val)))) -> decltype(::wpi::to_json(j, std::forward< TargetType >(val)), void())
convert any value type to a JSON value
Definition: adl_serializer.h:47
static auto from_json(BasicJsonType &&j, TargetType &val) noexcept(noexcept(::wpi::from_json(std::forward< BasicJsonType >(j), val))) -> decltype(::wpi::from_json(std::forward< BasicJsonType >(j), val), void())
convert a JSON value to any value type
Definition: adl_serializer.h:27
static auto from_json(BasicJsonType &&j) noexcept(noexcept(::wpi::from_json(std::forward< BasicJsonType >(j), detail::identity_tag< TargetType > {}))) -> decltype(::wpi::from_json(std::forward< BasicJsonType >(j), detail::identity_tag< TargetType > {}))
convert a JSON value to any value type
Definition: adl_serializer.h:37
Definition: identity_tag.h:18