Wildmeshing Toolkit
Loading...
Searching...
No Matches
json_utils.cpp
Go to the documentation of this file.
1#include "json_utils.hpp"
2
3namespace nlohmann {
4
5void adl_serializer<std::filesystem::path>::to_json(json& j, const std::filesystem::path& p)
6{
7 j = p.string();
8}
9
10void 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
nlohmann::json json
Definition input.cpp:9