Lines Matching refs:get
175 a.m_val = j.template get<int>();
181 n.m_val = j.template get<std::string>();
187 const auto str = j.template get<std::string>();
203 p.m_age = j["age"].template get<age>();
204 p.m_name = j["name"].template get<name>();
205 p.m_country = j["country"].template get<country>();
210 a.m_val = j.get<std::string>();
215 c.m_person = j["person"].get<person>();
216 c.m_address = j["address"].get<address>();
221 cb.m_book_name = j["name"].get<name>();
222 cb.m_contacts = j["contacts"].get<std::vector<contact>>();
262 SECTION("via explicit calls to get")
264 const auto parsed_book = big_json.get<udt::contact_book>();
265 const auto book_name = big_json["name"].get<udt::name>();
267 big_json["contacts"].get<std::vector<udt::contact>>();
269 const auto contact = contact_json.get<udt::contact>();
270 const auto person = contact_json["person"].get<udt::person>();
271 const auto address = contact_json["address"].get<udt::address>();
272 const auto age = contact_json["person"]["age"].get<udt::age>();
274 contact_json["person"]["country"].get<udt::country>();
275 const auto name = contact_json["person"]["name"].get<udt::name>();
364 opt.reset(new T(j.get<T>())); // NOLINT(cppcoreguidelines-owning-memory)
379 l.number = std::to_string(j.get<int>());
399 CHECK(j.get<udt::person>() == *optPerson);
407 auto optPerson = j.get<std::shared_ptr<udt::person>>();
412 optPerson = j.get<std::shared_ptr<udt::person>>();
424 CHECK(j.get<int>() == 4242);
430 auto lt = j.get<udt::legacy_type>();
464 auto f = j.get<std::vector<float>>();
494 return std::unique_ptr<T>(new T(j.get<T>()));
512 CHECK(j.get<udt::person>() == *optPerson);
520 auto optPerson = j.get<std::unique_ptr<udt::person>>();
525 optPerson = j.get<std::unique_ptr<udt::person>>();
557 // Why cannot we simply use: j.get<std::uint64_t>() ?
558 // Well, with the current experiment, the get method looks for a from_json
566 // calling get calls from_json, for now, we cannot do this in custom
620 np.s = j.template get<std::string>();
649 auto p2 = j.get<udt::small_pod>();
655 auto np2 = j2.get<udt::non_pod>();
689 CHECK(me == j.get<udt::person>());
690 CHECK(me == cj.get<udt::person>());
766 auto m = j.get<std::map<std::string, std::string>>();
770 SECTION("get<custom_json>")
773 custom_json cj = j.get<custom_json>();
817 // Prevent get<std::vector<Evil>>() to throw
820 CHECK_NOTHROW(j.get<Evil>());
821 CHECK_NOTHROW(j.get<std::vector<Evil>>());