20#ifndef JSON_SERIALIZERS_H_
21#define JSON_SERIALIZERS_H_
27NLOHMANN_JSON_NAMESPACE_BEGIN
33struct char_traits<wxUniChar> : std::char_traits<char>
46NLOHMANN_JSON_NAMESPACE_END
51struct adl_serializer<wxString>
55 s = wxString::FromUTF8( j.get<std::string>().c_str() );
58 static void to_json( json& j,
const wxString& s ) { j = s.ToUTF8(); }
62struct adl_serializer<
std::optional<T>>
64 static void from_json(
const json& j, std::optional<T>& opt )
72 opt = j.template get<T>();
76 static void to_json( json& j,
const std::optional<T>& opt )
static char_type to_char_type(int_type i) noexcept
static int_type to_int_type(char_type c) noexcept
static constexpr int_type eof() noexcept
static void to_json(json &j, const std::optional< T > &opt)
static void from_json(const json &j, std::optional< T > &opt)
static void from_json(const json &j, wxString &s)
static void to_json(json &j, const wxString &s)