Lines Matching refs:from_json

169 // from_json methods
173 static void from_json(const BasicJsonType& j, age& a)
179 static void from_json(const BasicJsonType& j, name& n)
185 static void from_json(const BasicJsonType& j, country& c)
201 static void from_json(const BasicJsonType& j, person& p)
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)
356 static void from_json(const json& j, std::shared_ptr<T>& opt)
377 static void from_json(const json& j, udt::legacy_type& l)
402 SECTION("from_json")
427 SECTION("from_json")
447 static void from_json(const json& /*unnamed*/, type& opt)
453 static type from_json(const json& /*unnamed*/)
465 // the single argument from_json method is preferred
487 static std::unique_ptr<T> from_json(const json& j)
515 SECTION("from_json")
541 static void from_json(const BasicJsonType& j, U& t)
543 using nlohmann::from_json;
544 from_json(j, t);
551 static void from_json(const BasicJsonType& j, U& t)
555 // the problem arises only when one from_json method is defined without any constraint
558 // Well, with the current experiment, the get method looks for a from_json
560 // This would end up in a stack overflow. Calling nlohmann::from_json is a
566 // calling get calls from_json, for now, we cannot do this in custom
568 nlohmann::from_json(j, value);
618 static void from_json(const BasicJsonType& j, non_pod& np)
667 static void from_json(const custom_json& j, T& t)
669 using nlohmann::from_json;
670 from_json(j, t);
812 void from_json(const json& /*unused*/, Evil& /*unused*/) {}