WPILibC++ 2023.4.3
|
default JSONSerializer template argument More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/json/include/wpi/json.h>
Static Public Member Functions | |
template<typename BasicJsonType , typename ValueType > | |
static void | from_json (BasicJsonType &&j, ValueType &val) noexcept(noexcept(::wpi::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(::wpi::to_json(j, std::forward< ValueType >(val)))) |
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 |
|
inlinestaticnoexcept |
convert any value type to a JSON value
This function is usually called by the constructors of the json class.
[in,out] | j | JSON value to write to |
[in] | val | value to read from |