Lines Matching full:json
2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
12 #include <nlohmann/json.hpp>
13 using nlohmann::json;
30 auto const t = json::value_t::null;
31 json const j(t);
37 auto const t = json::value_t::discarded;
38 json const j(t);
44 auto const t = json::value_t::object;
45 json const j(t);
51 auto const t = json::value_t::array;
52 json const j(t);
58 auto const t = json::value_t::boolean;
59 json const j(t);
66 auto const t = json::value_t::string;
67 json const j(t);
74 auto const t = json::value_t::number_integer;
75 json const j(t);
82 auto const t = json::value_t::number_unsigned;
83 json const j(t);
90 auto const t = json::value_t::number_float;
91 json const j(t);
98 auto const t = json::value_t::binary;
99 json const j(t);
101 CHECK(j == json::binary({}));
109 json const j{};
110 CHECK(j.type() == json::value_t::null);
118 json const j(nullptr);
119 CHECK(j.type() == json::value_t::null);
127 json::object_t const o{};
128 json const j(o);
129 CHECK(j.type() == json::value_t::object);
134 …json::object_t const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", json(false)}, {"e…
135 json const j(o);
136 CHECK(j.type() == json::value_t::object);
143 …json::object_t const o_reference {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", json(fa…
144 json const j_reference(o_reference);
146 SECTION("std::map<json::string_t, json>")
148 …std::map<json::string_t, json> const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", j…
149 json const j(o);
150 CHECK(j.type() == json::value_t::object);
163 json const j(m);
167 SECTION("std::map<const char*, json>")
169 …map<const char*, json> const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", json(fals…
170 json const j(o);
171 CHECK(j.type() == json::value_t::object);
175 SECTION("std::multimap<json::string_t, json>")
177 …multimap<json::string_t, json> const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", j…
178 json const j(o);
179 CHECK(j.type() == json::value_t::object);
183 SECTION("std::unordered_map<json::string_t, json>")
185 …ered_map<json::string_t, json> const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", j…
186 json const j(o);
187 CHECK(j.type() == json::value_t::object);
191 SECTION("std::unordered_multimap<json::string_t, json>")
193 …multimap<json::string_t, json> const o {{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", j…
194 json const j(o);
195 CHECK(j.type() == json::value_t::object);
201 …json const j({{"a", json(1)}, {"b", json(1u)}, {"c", json(2.2)}, {"d", json(false)}, {"e", json("s…
202 CHECK(j.type() == json::value_t::object);
211 json::array_t const a{};
212 json const j(a);
213 CHECK(j.type() == json::value_t::array);
218 … json::array_t const a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
219 json const j(a);
220 CHECK(j.type() == json::value_t::array);
227 …json::array_t const a_reference {json(1), json(1u), json(2.2), json(false), json("string"), json()…
228 json const j_reference(a_reference);
230 SECTION("std::list<json>")
232 … std::list<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
233 json const j(a);
234 CHECK(j.type() == json::value_t::array);
241 json const j(p);
243 CHECK(j.type() == json::value_t::array);
252 json const j{1, 2.0, "string"};
262 json const j(t);
264 CHECK(j.type() == json::value_t::array);
276 json const j{1, 2.0, "string", 42};
281 …t due to CI issue, see https://github.com/nlohmann/json/pull/3985 and https://github.com/nlohmann/…
286 json const j{1};
288 …WITH_AS((j.get<std::pair<int, int>>()), "[json.exception.out_of_range.401] array index 1 is out of…
289 …ITH_AS((j.get<std::tuple<int, int>>()), "[json.exception.out_of_range.401] array index 1 is out of…
290 …_WITH_AS((j.get<std::array<int, 3>>()), "[json.exception.out_of_range.401] array index 1 is out of…
293 SECTION("std::forward_list<json>")
295 …std::forward_list<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json()…
296 json const j(a);
297 CHECK(j.type() == json::value_t::array);
301 SECTION("std::array<json, 6>")
303 … std::array<json, 6> const a {{json(1), json(1u), json(2.2), json(false), json("string"), json()}};
304 json const j(a);
305 CHECK(j.type() == json::value_t::array);
308 const auto a2 = j.get<std::array<json, 6>>();
315 json const j(va);
316 CHECK(j.type() == json::value_t::array);
317 CHECK(j == json({1, 2, 3, 4, 5}));
330 json const j(va);
331 CHECK(j.type() == json::value_t::array);
332 CHECK(j == json({1.2, 2.3, 3.4, 4.5, 5.6}));
342 SECTION("std::vector<json>")
344 … std::vector<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
345 json const j(a);
346 CHECK(j.type() == json::value_t::array);
350 SECTION("std::deque<json>")
352 … std::deque<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
353 json const j(a);
354 CHECK(j.type() == json::value_t::array);
358 SECTION("std::set<json>")
360 … std::set<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json()};
361 json const j(a);
362 CHECK(j.type() == json::value_t::array);
366 SECTION("std::unordered_set<json>")
368 …std::unordered_set<json> const a {json(1), json(1u), json(2.2), json(false), json("string"), json(…
369 json const j(a);
370 CHECK(j.type() == json::value_t::array);
376 json const j({json(1), json(1u), json(2.2), json(false), json("string"), json()});
377 CHECK(j.type() == json::value_t::array);
386 json::string_t const s{};
387 json const j(s);
388 CHECK(j.type() == json::value_t::string);
393 json::string_t const s {"Hello world"};
394 json const j(s);
395 CHECK(j.type() == json::value_t::string);
402 json::string_t const s_reference {"Hello world"};
403 json const j_reference(s_reference);
408 json const j(s);
409 CHECK(j.type() == json::value_t::string);
416 json const j(s);
417 CHECK(j.type() == json::value_t::string);
424 json const j(s);
425 CHECK(j.type() == json::value_t::string);
431 json const j("Hello world");
432 CHECK(j.type() == json::value_t::string);
441 json::boolean_t const b{};
442 json const j(b);
443 CHECK(j.type() == json::value_t::boolean);
448 json const j(true);
449 CHECK(j.type() == json::value_t::boolean);
454 json const j(false);
455 CHECK(j.type() == json::value_t::boolean);
461 json const j(v[0]);
463 CHECK(j.type() == json::value_t::boolean);
469 json const j(v[0]);
471 CHECK(j.type() == json::value_t::boolean);
479 json::binary_t const b{};
480 json const j(b);
481 CHECK(j.type() == json::value_t::binary);
486 json::binary_t const b({1, 2, 3});
487 json const j(b);
488 CHECK(j.type() == json::value_t::binary);
496 json::number_integer_t const n{};
497 json const j(n);
498 CHECK(j.type() == json::value_t::number_integer);
503 json::number_integer_t const n(42);
504 json const j(n);
505 CHECK(j.type() == json::value_t::number_integer);
512 json::number_integer_t const n_reference = 42;
513 json const j_reference(n_reference);
514 json::number_unsigned_t const n_unsigned_reference = 42;
515 json const j_unsigned_reference(n_unsigned_reference);
520 json const j(n);
521 CHECK(j.type() == json::value_t::number_integer);
528 json const j(n);
529 CHECK(j.type() == json::value_t::number_unsigned);
536 json const j(n);
537 CHECK(j.type() == json::value_t::number_integer);
544 json const j(n);
545 CHECK(j.type() == json::value_t::number_unsigned);
552 json const j(n);
553 CHECK(j.type() == json::value_t::number_integer);
560 json const j(n);
561 CHECK(j.type() == json::value_t::number_unsigned);
568 json const j(n);
569 CHECK(j.type() == json::value_t::number_integer);
576 json const j(n);
577 CHECK(j.type() == json::value_t::number_unsigned);
584 json const j(n);
585 CHECK(j.type() == json::value_t::number_integer);
592 json const j(n);
593 CHECK(j.type() == json::value_t::number_integer);
600 json const j(n);
601 CHECK(j.type() == json::value_t::number_integer);
608 json const j(n);
609 CHECK(j.type() == json::value_t::number_integer);
616 json const j(n);
617 CHECK(j.type() == json::value_t::number_integer);
624 json const j(n);
625 CHECK(j.type() == json::value_t::number_integer);
632 json const j(n);
633 CHECK(j.type() == json::value_t::number_integer);
640 json const j(n);
641 CHECK(j.type() == json::value_t::number_integer);
648 json const j(n);
649 CHECK(j.type() == json::value_t::number_integer);
656 json const j(n);
657 CHECK(j.type() == json::value_t::number_integer);
664 json const j(n);
665 CHECK(j.type() == json::value_t::number_integer);
672 json const j(n);
673 CHECK(j.type() == json::value_t::number_integer);
680 json const j(n);
681 CHECK(j.type() == json::value_t::number_unsigned);
688 json const j(n);
689 CHECK(j.type() == json::value_t::number_unsigned);
696 json const j(n);
697 CHECK(j.type() == json::value_t::number_unsigned);
704 json const j(n);
705 CHECK(j.type() == json::value_t::number_unsigned);
712 json const j(n);
713 CHECK(j.type() == json::value_t::number_unsigned);
720 json const j(n);
721 CHECK(j.type() == json::value_t::number_unsigned);
728 json const j(n);
729 CHECK(j.type() == json::value_t::number_unsigned);
736 json const j(n);
737 CHECK(j.type() == json::value_t::number_unsigned);
744 json const j(n);
745 CHECK(j.type() == json::value_t::number_unsigned);
752 json const j(n);
753 CHECK(j.type() == json::value_t::number_unsigned);
760 json const j(n);
761 CHECK(j.type() == json::value_t::number_unsigned);
768 json const j(n);
769 CHECK(j.type() == json::value_t::number_unsigned);
775 json const j(42);
776 CHECK(j.type() == json::value_t::number_integer);
782 json j(42u);
783 CHECK(j.type() == json::value_t::number_unsigned);
789 json const j(42L);
790 CHECK(j.type() == json::value_t::number_integer);
796 json j(42ul);
797 CHECK(j.type() == json::value_t::number_unsigned);
803 json const j(42LL);
804 CHECK(j.type() == json::value_t::number_integer);
810 json j(42ull);
811 CHECK(j.type() == json::value_t::number_unsigned);
820 json::number_float_t const n{};
821 json const j(n);
822 CHECK(j.type() == json::value_t::number_float);
827 json::number_float_t const n(42.23);
828 json const j(n);
829 CHECK(j.type() == json::value_t::number_float);
835 json::number_float_t const n(std::numeric_limits<json::number_float_t>::quiet_NaN());
836 json const j(n);
837 CHECK(j.type() == json::value_t::number_float);
840 json::number_float_t const d{j};
850 json::number_float_t const n(std::numeric_limits<json::number_float_t>::infinity());
851 json const j(n);
852 CHECK(j.type() == json::value_t::number_float);
855 json::number_float_t const d{j};
866 json::number_float_t const n_reference = 42.23;
867 json const j_reference(n_reference);
872 json const j(n);
873 CHECK(j.type() == json::value_t::number_float);
880 json const j(n);
881 CHECK(j.type() == json::value_t::number_float);
888 json const j(n);
889 CHECK(j.type() == json::value_t::number_float);
895 json const j(42.23);
896 CHECK(j.type() == json::value_t::number_float);
902 json const j(42.23f);
903 CHECK(j.type() == json::value_t::number_float);
909 json const j(42.23L);
910 CHECK(j.type() == json::value_t::number_float);
921 json const j(json::initializer_list_t {});
922 CHECK(j.type() == json::value_t::object);
927 json const j {};
928 CHECK(j.type() == json::value_t::null);
938 json const j(json::initializer_list_t {json(json::array_t())});
939 CHECK(j.type() == json::value_t::array);
944 json const j {json::array_t()};
945 CHECK(j.type() == json::value_t::array);
953 json const j(json::initializer_list_t {json(json::object_t())});
954 CHECK(j.type() == json::value_t::array);
959 json const j {json::object_t()};
960 CHECK(j.type() == json::value_t::array);
968 json const j(json::initializer_list_t {json("Hello world")});
969 CHECK(j.type() == json::value_t::array);
974 json const j {"Hello world"};
975 CHECK(j.type() == json::value_t::array);
983 json const j(json::initializer_list_t {json(true)});
984 CHECK(j.type() == json::value_t::array);
989 json const j {true};
990 CHECK(j.type() == json::value_t::array);
998 json const j(json::initializer_list_t {json(1)});
999 CHECK(j.type() == json::value_t::array);
1004 json const j {1};
1005 CHECK(j.type() == json::value_t::array);
1013 json const j(json::initializer_list_t {json(1u)});
1014 CHECK(j.type() == json::value_t::array);
1019 json const j {1u};
1020 CHECK(j.type() == json::value_t::array);
1028 json const j(json::initializer_list_t {json(42.23)});
1029 CHECK(j.type() == json::value_t::array);
1034 json const j {42.23};
1035 CHECK(j.type() == json::value_t::array);
1044 …json const j(json::initializer_list_t {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_…
1045 CHECK(j.type() == json::value_t::array);
1050 json const j {1, 1u, 42.23, true, nullptr, json::object_t(), json::array_t()};
1051 CHECK(j.type() == json::value_t::array);
1059 json const j { {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false} };
1060 CHECK(j.type() == json::value_t::object);
1065 json const j { {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false}, 13 };
1066 CHECK(j.type() == json::value_t::array);
1074 json const j = json::object();
1075 CHECK(j.type() == json::value_t::object);
1080 … json const j = json::object({ {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false} });
1081 CHECK(j.type() == json::value_t::object);
1086 json _;
1087 …json::object({ {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false}, 13 }), "[json.exception.t…
1092 json const j = json::array();
1093 CHECK(j.type() == json::value_t::array);
1098 … json const j = json::array({ {"one", 1}, {"two", 1u}, {"three", 2.2}, {"four", false} });
1099 CHECK(j.type() == json::value_t::array);
1112 json j = {std::move(source)};
1123 json j = {{"key", std::move(source)}};
1134 json j = {{std::move(source), 42}};
1135 const auto* target_addr = j.get_ref<json::object_t&>().begin()->first.data();
1145 json::array_t source = {1, 2, 3};
1147 json j {std::move(source)};
1148 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1155 json::array_t source = {1, 2, 3};
1157 json const j {{"key", std::move(source)}};
1158 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1165 json::array_t source = {1, 2, 3};
1167 json j = {std::move(source)};
1168 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1175 json::array_t source = {1, 2, 3};
1177 json j = {{"key", std::move(source)}};
1178 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1188 json::object_t source = {{"hello", "world"}};
1189 const json* source_addr = &source.at("hello");
1190 json j {std::move(source)};
1191 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr);
1196 json::object_t source = {{"hello", "world"}};
1197 const json* source_addr = &source.at("hello");
1198 json j {{"key", std::move(source)}};
1199 CHECK(&(j["key"].get_ref<json::object_t const&>().at("hello")) == source_addr);
1204 json::object_t source = {{"hello", "world"}};
1205 const json* source_addr = &source.at("hello");
1206 json j = {std::move(source)};
1207 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr);
1212 json::object_t source = {{"hello", "world"}};
1213 const json* source_addr = &source.at("hello");
1214 json j = {{"key", std::move(source)}};
1215 CHECK(&(j["key"].get_ref<json::object_t const&>().at("hello")) == source_addr);
1219 SECTION("json")
1223 json source {1, 2, 3};
1224 const json* source_addr = &source[0];
1225 json j {std::move(source), {}};
1231 json source {1, 2, 3};
1232 const json* source_addr = &source[0];
1233 json j {{"key", std::move(source)}};
1239 json source {1, 2, 3};
1240 const json* source_addr = &source[0];
1241 json j = {std::move(source), {}};
1247 json source {1, 2, 3};
1248 const json* source_addr = &source[0];
1249 json j = {{"key", std::move(source)}};
1261 json const v = {1, "foo", 34.23, {1, 2, 3}, {{"A", 1}, {"B", 2u}}};
1262 json const arr(0, v);
1268 json const v = {1, "foo", 34.23, {1, 2, 3}, {{"A", 1}, {"B", 2u}}};
1269 json const arr(1, v);
1279 json const v = {1, "foo", 34.23, {1, 2, 3}, {{"A", 1}, {"B", 2u}}};
1280 json const arr(3, v);
1289 SECTION("create a JSON container from an iterator range")
1293 SECTION("json(begin(), end())")
1296 json jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1297 json const j_new(jobject.begin(), jobject.end());
1301 json jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1302 json const j_new(jobject.cbegin(), jobject.cend());
1307 SECTION("json(begin(), begin())")
1310 json jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1311 json const j_new(jobject.begin(), jobject.begin());
1312 CHECK(j_new == json::object());
1315 json const jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1316 json const j_new(jobject.cbegin(), jobject.cbegin());
1317 CHECK(j_new == json::object());
1323 json const jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}, {"d", false}, {"e", true}};
1324 json const j_new(jobject.find("b"), jobject.find("e"));
1325 CHECK(j_new == json({{"b", 1}, {"c", 17u}, {"d", false}}));
1331 json jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}, {"d", false}, {"e", true}};
1332 json jobject2 = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1333 …HECK_THROWS_WITH_AS(json(jobject.begin(), jobject2.end()), "[json.exception.invalid_iterator.201] …
1334 …HECK_THROWS_WITH_AS(json(jobject2.begin(), jobject.end()), "[json.exception.invalid_iterator.201] …
1337 … json const jobject = {{"a", "a"}, {"b", 1}, {"c", 17u}, {"d", false}, {"e", true}};
1338 json const jobject2 = {{"a", "a"}, {"b", 1}, {"c", 17u}};
1339 …ECK_THROWS_WITH_AS(json(jobject.cbegin(), jobject2.cend()), "[json.exception.invalid_iterator.201]…
1340 …ECK_THROWS_WITH_AS(json(jobject2.cbegin(), jobject.cend()), "[json.exception.invalid_iterator.201]…
1347 SECTION("json(begin(), end())")
1350 json jarray = {1, 2, 3, 4, 5};
1351 json const j_new(jarray.begin(), jarray.end());
1355 json const jarray = {1, 2, 3, 4, 5};
1356 json const j_new(jarray.cbegin(), jarray.cend());
1361 SECTION("json(begin(), begin())")
1364 json jarray = {1, 2, 3, 4, 5};
1365 json j_new(jarray.begin(), jarray.begin());
1366 CHECK(j_new == json::array());
1369 json const jarray = {1, 2, 3, 4, 5};
1370 json const j_new(jarray.cbegin(), jarray.cbegin());
1371 CHECK(j_new == json::array());
1378 json jarray = {1, 2, 3, 4, 5};
1379 json const j_new(jarray.begin() + 1, jarray.begin() + 3);
1380 CHECK(j_new == json({2, 3}));
1383 json const jarray = {1, 2, 3, 4, 5};
1384 json const j_new(jarray.cbegin() + 1, jarray.cbegin() + 3);
1385 CHECK(j_new == json({2, 3}));
1392 json jarray = {1, 2, 3, 4};
1393 json jarray2 = {2, 3, 4, 5};
1394 …CHECK_THROWS_WITH_AS(json(jarray.begin(), jarray2.end()), "[json.exception.invalid_iterator.201] i…
1395 …CHECK_THROWS_WITH_AS(json(jarray2.begin(), jarray.end()), "[json.exception.invalid_iterator.201] i…
1398 json const jarray = {1, 2, 3, 4};
1399 json const jarray2 = {2, 3, 4, 5};
1400 …HECK_THROWS_WITH_AS(json(jarray.cbegin(), jarray2.cend()), "[json.exception.invalid_iterator.201] …
1401 …HECK_THROWS_WITH_AS(json(jarray2.cbegin(), jarray.cend()), "[json.exception.invalid_iterator.201] …
1413 json j;
1414 …HECK_THROWS_WITH_AS(json(j.begin(), j.end()), "[json.exception.invalid_iterator.206] cannot constr…
1417 json const j;
1418 …ECK_THROWS_WITH_AS(json(j.cbegin(), j.cend()), "[json.exception.invalid_iterator.206] cannot const…
1425 json j = "foo";
1426 json const j_new(j.begin(), j.end());
1430 json const j = "bar";
1431 json const j_new(j.cbegin(), j.cend());
1439 json j = false;
1440 json const j_new(j.begin(), j.end());
1444 json const j = true;
1445 json const j_new(j.cbegin(), j.cend());
1453 json j = 17;
1454 json const j_new(j.begin(), j.end());
1458 json const j = 17;
1459 json const j_new(j.cbegin(), j.cend());
1467 json j = 17u;
1468 json const j_new(j.begin(), j.end());
1472 json const j = 17u;
1473 json const j_new(j.cbegin(), j.cend());
1481 json j = 23.42;
1482 json const j_new(j.begin(), j.end());
1486 json const j = 23.42;
1487 json const j_new(j.cbegin(), j.cend());
1495 json j = json::binary({1, 2, 3});
1496 json const j_new(j.begin(), j.end());
1500 json const j = json::binary({1, 2, 3});
1501 json const j_new(j.cbegin(), j.cend());
1512 json j = "foo";
1513 …CHECK_THROWS_WITH_AS(json(j.end(), j.end()), "[json.exception.invalid_iterator.204] iterators out …
1514 …CHECK_THROWS_WITH_AS(json(j.begin(), j.begin()), "[json.exception.invalid_iterator.204] iterators …
1517 json const j = "bar";
1518 …CHECK_THROWS_WITH_AS(json(j.cend(), j.cend()), "[json.exception.invalid_iterator.204] iterators ou…
1519 …CHECK_THROWS_WITH_AS(json(j.cbegin(), j.cbegin()), "[json.exception.invalid_iterator.204] iterator…
1526 json j = false;
1527 …CHECK_THROWS_WITH_AS(json(j.end(), j.end()), "[json.exception.invalid_iterator.204] iterators out …
1528 …CHECK_THROWS_WITH_AS(json(j.begin(), j.begin()), "[json.exception.invalid_iterator.204] iterators …
1531 json const j = true;
1532 …CHECK_THROWS_WITH_AS(json(j.cend(), j.cend()), "[json.exception.invalid_iterator.204] iterators ou…
1533 …CHECK_THROWS_WITH_AS(json(j.cbegin(), j.cbegin()), "[json.exception.invalid_iterator.204] iterator…
1540 json j = 17;
1541 …CHECK_THROWS_WITH_AS(json(j.end(), j.end()), "[json.exception.invalid_iterator.204] iterators out …
1542 …CHECK_THROWS_WITH_AS(json(j.begin(), j.begin()), "[json.exception.invalid_iterator.204] iterators …
1545 json const j = 17;
1546 …CHECK_THROWS_WITH_AS(json(j.cend(), j.cend()), "[json.exception.invalid_iterator.204] iterators ou…
1547 …CHECK_THROWS_WITH_AS(json(j.cbegin(), j.cbegin()), "[json.exception.invalid_iterator.204] iterator…
1554 json j = 17u;
1555 …CHECK_THROWS_WITH_AS(json(j.end(), j.end()), "[json.exception.invalid_iterator.204] iterators out …
1556 …CHECK_THROWS_WITH_AS(json(j.begin(), j.begin()), "[json.exception.invalid_iterator.204] iterators …
1559 json const j = 17u;
1560 …CHECK_THROWS_WITH_AS(json(j.cend(), j.cend()), "[json.exception.invalid_iterator.204] iterators ou…
1561 …CHECK_THROWS_WITH_AS(json(j.cbegin(), j.cbegin()), "[json.exception.invalid_iterator.204] iterator…
1568 json j = 23.42;
1569 …CHECK_THROWS_WITH_AS(json(j.end(), j.end()), "[json.exception.invalid_iterator.204] iterators out …
1570 …CHECK_THROWS_WITH_AS(json(j.begin(), j.begin()), "[json.exception.invalid_iterator.204] iterators …
1573 json const j = 23.42;
1574 …CHECK_THROWS_WITH_AS(json(j.cend(), j.cend()), "[json.exception.invalid_iterator.204] iterators ou…
1575 …CHECK_THROWS_WITH_AS(json(j.cbegin(), j.cbegin()), "[json.exception.invalid_iterator.204] iterator…