7 #ifndef IFM3D_DEVICE_JSON_HPP
8 #define IFM3D_DEVICE_JSON_HPP
137 # ifndef IFM3D_JSON_USE_GLOBAL_UDLS
138 # define IFM3D_JSON_USE_GLOBAL_UDLS 0
141 # include <ifm3d/common/json_impl.hpp>
143 # ifdef IFM3D_JSON_NLOHMANN_COMPAT
144 # ifndef NLOHMANN_JSON_VERSION_MAJOR
145 # 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"!
151 struct adl_serializer<ifm3d::json>
154 from_json(
const nlohmann::json& nl)
156 return ifm3d::json::parse(nl.dump(0));
162 nl = nlohmann::json::parse(ifm.dump(0));
167 # endif // IFM3D_JSON_NLOHMANN_COMPAT
173 #endif // IFM3D_DEVICE_JSON_HPP