diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp index 5a7cdb624..65065035f 100644 --- a/include/nlohmann/detail/conversions/from_json.hpp +++ b/include/nlohmann/detail/conversions/from_json.hpp @@ -558,6 +558,11 @@ inline void from_json(const BasicJsonType& j, std::unordered_map +struct has_from_json : std::true_type {}; + template inline void from_json(const BasicJsonType& j, std_fs::path& p) { diff --git a/include/nlohmann/detail/conversions/to_json.hpp b/include/nlohmann/detail/conversions/to_json.hpp index 3626593d3..0e0fb4655 100644 --- a/include/nlohmann/detail/conversions/to_json.hpp +++ b/include/nlohmann/detail/conversions/to_json.hpp @@ -450,6 +450,10 @@ inline void to_json(BasicJsonType& j, const std::basic_string +struct has_to_json : std::true_type {}; + template inline void to_json(BasicJsonType& j, const std_fs::path& p) { diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index d2165e8ef..dec481118 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -5668,6 +5668,11 @@ inline void from_json(const BasicJsonType& j, std::unordered_map +struct has_from_json : std::true_type {}; + template inline void from_json(const BasicJsonType& j, std_fs::path& p) { @@ -6451,6 +6456,10 @@ inline void to_json(BasicJsonType& j, const std::basic_string +struct has_to_json : std::true_type {}; + template inline void to_json(BasicJsonType& j, const std_fs::path& p) {