27 #include <boost/optional.hpp>
28 #include <nlohmann/json.hpp>
41 struct adl_serializer<boost::optional<T>> {
42 static void to_json(json& j,
const boost::optional<T>& opt) {
50 static void from_json(
const json& j, boost::optional<T>& opt) {
51 if (j.type() == json::value_t::null) {