7 #ifndef IFM3D_DEVICE_JSON_HPP
8 #define IFM3D_DEVICE_JSON_HPP
135 # ifndef IFM3D_JSON_USE_GLOBAL_UDLS
136 # define IFM3D_JSON_USE_GLOBAL_UDLS 0
139 # include <ifm3d/common/json_impl.hpp>
141 # ifdef IFM3D_JSON_NLOHMANN_COMPAT
142 # ifndef NLOHMANN_JSON_VERSION_MAJOR
143 # error Enabled ifm3d::json nlohmann::json compatiblity but nlohmann::json ist not available, make sure to include "nlohmann/json.hpp" before including "ifm3d/device/json.hpp"!
149 struct adl_serializer<ifm3d::json>
152 from_json(
const nlohmann::json& nl)
154 return ifm3d::json::parse(nl.dump(0));
160 nl = nlohmann::json::parse(ifm.dump(0));
165 # endif // IFM3D_JSON_NLOHMANN_COMPAT
169 #endif // IFM3D_DEVICE_JSON_HPP