Wildmeshing Toolkit
json_utils.cpp
Go to the documentation of this file.
1 #include "json_utils.hpp"
2 
3 namespace nlohmann {
4 
5 void adl_serializer<std::filesystem::path>::to_json(json& j, const std::filesystem::path& p)
6 {
7  j = p.string();
8 }
9 
10 void adl_serializer<std::filesystem::path>::from_json(const json& j, std::filesystem::path& p)
11 {
12  p = j.get<std::string>();
13 }
14 
15 } // namespace nlohmann
void from_json(const nlohmann::json &j, RegularSpaceOptions &o)
void to_json(nlohmann::json &j, RegularSpaceOptions &o)
nlohmann::json json
Definition: input.cpp:9