20#define DD_JSON_DECLARE_CONVERTER(Type) \
21 [[nodiscard]] std::string toJson(const Type &obj, const std::optional<unsigned int> &indent = 2u, bool *success = nullptr); \
22 [[nodiscard]] bool fromJson(const std::string &string, Type &obj, std::string *error_message = nullptr);
25namespace display_device {
26 extern const std::optional<unsigned int> JSON_COMPACT;
#define DD_JSON_DECLARE_CONVERTER(Type)
Helper MACRO to declare the toJson and fromJson converters for a type.
Definition json.h:20
Declarations for common display device types.