Lines Matching defs:nlohmann
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
6 // SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
15 #include <nlohmann/json.hpp>
16 using nlohmann::json;
18 using namespace nlohmann::literals; // NOLINT(google-build-using-namespace)
120 static void to_json(nlohmann::json& j, const address& a)
125 static void to_json(nlohmann::json& j, const contact& c)
130 static void to_json(nlohmann::json& j, const contact_book& cb)
196 // TODO(nlohmann) test exceptions
208 static void from_json(const nlohmann::json& j, address& a)
213 static void from_json(const nlohmann::json& j, contact& c)
219 static void from_json(const nlohmann::json& j, contact_book& cb)
339 namespace nlohmann
382 } // namespace nlohmann
436 namespace nlohmann
458 } // namespace nlohmann
469 namespace nlohmann
497 } // namespace nlohmann
543 using nlohmann::from_json;
560 // This would end up in a stack overflow. Calling nlohmann::from_json is a
568 nlohmann::from_json(j, value);
579 using nlohmann::to_json;
591 nlohmann::to_json(j, value);
643 nlohmann::basic_json<std::map, std::vector, std::string, bool,
662 using custom_json = nlohmann::basic_json<std::map, std::vector, std::string, bool, std::int64_t, std::uint64_t, double, std::allocator, another_adl_serializer>;
669 using nlohmann::from_json;
675 using nlohmann::to_json;