Lines Matching full:json
2 // __| | __| | | | JSON for Modern C++ (supporting code)
4 // |_____|_____|_____|_|___| https://github.com/nlohmann/json
11 #include <nlohmann/json.hpp>
12 using nlohmann::json;
42 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
47 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
52 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
92 …bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*u… in parse_error()
109 json j = json::value_t::discarded;
110 const auto result = json::to_msgpack(j);
116 json j = nullptr;
118 const auto result = json::to_msgpack(j);
122 CHECK(json::from_msgpack(result) == j);
123 CHECK(json::from_msgpack(result, true, false) == j);
130 json j = true;
132 const auto result = json::to_msgpack(j);
136 CHECK(json::from_msgpack(result) == j);
137 CHECK(json::from_msgpack(result, true, false) == j);
142 json j = false;
144 const auto result = json::to_msgpack(j);
148 CHECK(json::from_msgpack(result) == j);
149 CHECK(json::from_msgpack(result, true, false) == j);
163 // create JSON value with integer number
164 json j = i;
174 const auto result = json::to_msgpack(j);
182 CHECK(json::from_msgpack(result) == j);
183 CHECK(json::from_msgpack(result, true, false) == j);
193 // create JSON value with integer number
194 json j = -1;
195 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
205 const auto result = json::to_msgpack(j);
213 CHECK(json::from_msgpack(result) == j);
214 CHECK(json::from_msgpack(result, true, false) == j);
224 // create JSON value with integer number
225 json j = -1;
226 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
237 const auto result = json::to_msgpack(j);
247 CHECK(json::from_msgpack(result) == j);
248 CHECK(json::from_msgpack(result, true, false) == j);
258 // create JSON value with integer number
259 json j = -1;
260 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
272 const auto result = json::to_msgpack(j);
282 CHECK(json::from_msgpack(result) == j);
283 CHECK(json::from_msgpack(result, true, false) == j);
296 // create JSON value with integer number
297 json j = -1;
298 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
312 const auto result = json::to_msgpack(j);
325 CHECK(json::from_msgpack(result) == j);
326 CHECK(json::from_msgpack(result, true, false) == j);
339 // create JSON value with integer number
340 json j = -1;
341 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
359 const auto result = json::to_msgpack(j);
376 CHECK(json::from_msgpack(result) == j);
377 CHECK(json::from_msgpack(result, true, false) == j);
387 // create JSON value with integer number
388 json j = i;
399 const auto result = json::to_msgpack(j);
408 CHECK(json::from_msgpack(result) == j);
409 CHECK(json::from_msgpack(result, true, false) == j);
415 json j = -9263;
418 const auto result = json::to_msgpack(j);
425 CHECK(json::from_msgpack(result) == j);
426 CHECK(json::from_msgpack(result, true, false) == j);
435 // create JSON value with integer number
436 json j = i;
448 const auto result = json::to_msgpack(j);
458 CHECK(json::from_msgpack(result) == j);
459 CHECK(json::from_msgpack(result, true, false) == j);
475 // create JSON value with integer number
476 json j = i;
490 const auto result = json::to_msgpack(j);
503 CHECK(json::from_msgpack(result) == j);
504 CHECK(json::from_msgpack(result, true, false) == j);
517 // create JSON value with unsigned integer number
518 json j = i;
536 const auto result = json::to_msgpack(j);
553 CHECK(json::from_msgpack(result) == j);
554 CHECK(json::from_msgpack(result, true, false) == j);
567 // create JSON value with unsigned integer number
568 json j = i;
578 const auto result = json::to_msgpack(j);
586 CHECK(json::from_msgpack(result) == j);
587 CHECK(json::from_msgpack(result, true, false) == j);
597 // create JSON value with unsigned integer number
598 json j = i;
609 const auto result = json::to_msgpack(j);
619 CHECK(json::from_msgpack(result) == j);
620 CHECK(json::from_msgpack(result, true, false) == j);
630 // create JSON value with unsigned integer number
631 json j = i;
643 const auto result = json::to_msgpack(j);
653 CHECK(json::from_msgpack(result) == j);
654 CHECK(json::from_msgpack(result, true, false) == j);
667 // create JSON value with unsigned integer number
668 json j = i;
682 const auto result = json::to_msgpack(j);
695 CHECK(json::from_msgpack(result) == j);
696 CHECK(json::from_msgpack(result, true, false) == j);
709 // create JSON value with unsigned integer number
710 json j = i;
728 const auto result = json::to_msgpack(j);
745 CHECK(json::from_msgpack(result) == j);
746 CHECK(json::from_msgpack(result, true, false) == j);
756 json j = v;
761 const auto result = json::to_msgpack(j);
765 CHECK(json::from_msgpack(result) == j);
766 CHECK(json::from_msgpack(result) == v);
767 CHECK(json::from_msgpack(result, true, false) == j);
773 json j = v;
778 const auto result = json::to_msgpack(j);
782 CHECK(json::from_msgpack(result) == j);
783 CHECK(json::from_msgpack(result) == v);
784 CHECK(json::from_msgpack(result, true, false) == j);
790 json j = v;
795 const auto result = json::to_msgpack(j);
799 CHECK(json::from_msgpack(result) == j);
800 CHECK(json::from_msgpack(result) == v);
801 CHECK(json::from_msgpack(result, true, false) == j);
823 // create JSON value with string containing of N * 'x'
825 json j = s;
839 const auto result = json::to_msgpack(j);
849 CHECK(json::from_msgpack(result) == j);
850 CHECK(json::from_msgpack(result, true, false) == j);
860 // create JSON value with string containing of N * 'x'
862 json j = s;
874 const auto result = json::to_msgpack(j);
881 CHECK(json::from_msgpack(result) == j);
882 CHECK(json::from_msgpack(result, true, false) == j);
895 // create JSON value with string containing of N * 'x'
897 json j = s;
907 const auto result = json::to_msgpack(j);
914 CHECK(json::from_msgpack(result) == j);
915 CHECK(json::from_msgpack(result, true, false) == j);
928 // create JSON value with string containing of N * 'x'
930 json j = s;
942 const auto result = json::to_msgpack(j);
949 CHECK(json::from_msgpack(result) == j);
950 CHECK(json::from_msgpack(result, true, false) == j);
959 json j = json::array();
961 const auto result = json::to_msgpack(j);
965 CHECK(json::from_msgpack(result) == j);
966 CHECK(json::from_msgpack(result, true, false) == j);
971 json j = {nullptr};
973 const auto result = json::to_msgpack(j);
977 CHECK(json::from_msgpack(result) == j);
978 CHECK(json::from_msgpack(result, true, false) == j);
983 json j = json::parse("[1,2,3,4,5]");
985 const auto result = json::to_msgpack(j);
989 CHECK(json::from_msgpack(result) == j);
990 CHECK(json::from_msgpack(result, true, false) == j);
995 json j = json::parse("[[[[]]]]");
997 const auto result = json::to_msgpack(j);
1001 CHECK(json::from_msgpack(result) == j);
1002 CHECK(json::from_msgpack(result, true, false) == j);
1007 json j(16, nullptr);
1012 const auto result = json::to_msgpack(j);
1016 CHECK(json::from_msgpack(result) == j);
1017 CHECK(json::from_msgpack(result, true, false) == j);
1022 json j(65536, nullptr);
1029 const auto result = json::to_msgpack(j);
1040 CHECK(json::from_msgpack(result) == j);
1041 CHECK(json::from_msgpack(result, true, false) == j);
1049 json j = json::object();
1051 const auto result = json::to_msgpack(j);
1055 CHECK(json::from_msgpack(result) == j);
1056 CHECK(json::from_msgpack(result, true, false) == j);
1061 json j = {{"", nullptr}};
1063 const auto result = json::to_msgpack(j);
1067 CHECK(json::from_msgpack(result) == j);
1068 CHECK(json::from_msgpack(result, true, false) == j);
1073 json j = json::parse(R"({"a": {"b": {"c": {}}}})");
1078 const auto result = json::to_msgpack(j);
1082 CHECK(json::from_msgpack(result) == j);
1083 CHECK(json::from_msgpack(result, true, false) == j);
1088 json j = R"({"00": null, "01": null, "02": null, "03": null,
1093 const auto result = json::to_msgpack(j);
1106 CHECK(json::from_msgpack(result) == j);
1107 CHECK(json::from_msgpack(result, true, false) == j);
1112 json j;
1122 const auto result = json::to_msgpack(j);
1137 CHECK(json::from_msgpack(result) == j);
1138 CHECK(json::from_msgpack(result, true, false) == j);
1150 // create JSON value with byte array containing of N * 'x'
1152 json j = json::binary(s);
1188 const auto result = json::to_msgpack(j);
1211 CHECK(json::from_msgpack(result) == j);
1212 CHECK(json::from_msgpack(result, true, false) == j);
1225 // create JSON value with string containing of N * 'x'
1227 json j = json::binary(s);
1240 const auto result = json::to_msgpack(j);
1247 CHECK(json::from_msgpack(result) == j);
1248 CHECK(json::from_msgpack(result, true, false) == j);
1261 // create JSON value with string containing of N * 'x'
1263 json j = json::binary(s);
1278 const auto result = json::to_msgpack(j);
1285 CHECK(json::from_msgpack(result) == j);
1286 CHECK(json::from_msgpack(result, true, false) == j);
1299 // create JSON value with byte array containing of N * 'x'
1301 json j = json::binary(s);
1313 const auto result = json::to_msgpack(j);
1323 CHECK(json::from_msgpack(result) == j);
1324 CHECK(json::from_msgpack(result, true, false) == j);
1337 // create JSON value with string containing of N * 'x'
1339 json j = json::binary(s);
1349 const auto result = json::to_msgpack(j);
1356 CHECK(json::from_msgpack(result) == j);
1357 CHECK(json::from_msgpack(result, true, false) == j);
1370 // create JSON value with string containing of N * 'x'
1372 json j = json::binary(s);
1384 const auto result = json::to_msgpack(j);
1391 CHECK(json::from_msgpack(result) == j);
1392 CHECK(json::from_msgpack(result, true, false) == j);
1401 json j = json::from_msgpack(given);
1409 json _;
1410 …json::from_msgpack(std::vector<uint8_t>()), "[json.exception.parse_error.110] parse error at byte …
1411 CHECK(json::from_msgpack(std::vector<uint8_t>(), true, false).is_discarded());
1416 json _;
1418 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x87})),
1419 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack st…
1420 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcc})),
1421 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1422 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcd})),
1423 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1424 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcd, 0x00})),
1425 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1426 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce})),
1427 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1428 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00})),
1429 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1430 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00})),
1431 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack nu…
1432 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00, 0x00})),
1433 …"[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing MessagePack nu…
1434 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf})),
1435 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1436 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00})),
1437 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1438 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00})),
1439 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack nu…
1440 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00})),
1441 …"[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing MessagePack nu…
1442 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00})),
1443 …"[json.exception.parse_error.110] parse error at byte 6: syntax error while parsing MessagePack nu…
1444 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1445 …"[json.exception.parse_error.110] parse error at byte 7: syntax error while parsing MessagePack nu…
1446 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1447 …"[json.exception.parse_error.110] parse error at byte 8: syntax error while parsing MessagePack nu…
1448 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1449 …"[json.exception.parse_error.110] parse error at byte 9: syntax error while parsing MessagePack nu…
1450 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xa5, 0x68, 0x65})),
1451 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack st…
1452 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x92, 0x01})),
1453 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack va…
1454 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x81, 0xa1, 0x61})),
1455 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack va…
1456 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xc4, 0x02})),
1457 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack bi…
1459 CHECK(json::from_msgpack(std::vector<uint8_t>({0x87}), true, false).is_discarded());
1460 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcc}), true, false).is_discarded());
1461 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcd}), true, false).is_discarded());
1462 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcd, 0x00}), true, false).is_discarded());
1463 CHECK(json::from_msgpack(std::vector<uint8_t>({0xce}), true, false).is_discarded());
1464 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00}), true, false).is_discarded());
1465 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00}), true, false).is_discarded());
1466 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00, 0x00}), true, false).is_discarded…
1467 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf}), true, false).is_discarded());
1468 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00}), true, false).is_discarded());
1469 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00}), true, false).is_discarded());
1470 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00}), true, false).is_discarded…
1471 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00}), true, false).is_dis…
1472 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00}), true, false).…
1473 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), true, f…
1474 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), t…
1475 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xa5, 0x68, 0x65}), true, false).is_discarded());
1476 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x92, 0x01}), true, false).is_discarded());
1477 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x81, 0xA1, 0x61}), true, false).is_discarded());
1478 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xc4, 0x02}), true, false).is_discarded());
1479 CHECK(json::from_msgpack(std::vector<uint8_t>({0xc4}), true, false).is_discarded());
1486 json _;
1487 …json::from_msgpack(std::vector<uint8_t>({0xc1})), "[json.exception.parse_error.112] parse error at…
1498 json _;
1499 …CHECK_THROWS_AS(_ = json::from_msgpack(std::vector<uint8_t>({static_cast<uint8_t>(byte)})), json::…
1500 …CHECK(json::from_msgpack(std::vector<uint8_t>({static_cast<uint8_t>(byte)}), true, false).is_disca…
1507 json _;
1508 …json::from_msgpack(std::vector<uint8_t>({0x81, 0xff, 0x01})), "[json.exception.parse_error.113] pa…
1509 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x81, 0xff, 0x01}), true, false).is_discarded());
1517 const auto result = json::from_msgpack(vec, false);
1518 CHECK(result == json());
1523 json _;
1524 …json::from_msgpack(vec), "[json.exception.parse_error.110] parse error at byte 2: syntax error whi…
1525 CHECK(json::from_msgpack(vec, true, false).is_discarded());
1536 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1543 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1550 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1558 SECTION("sample.json")
1560 std::string filename = TEST_DATA_DIRECTORY "/json_testsuite/sample.json";
1562 // parse JSON file
1564 json j1 = json::parse(f_json);
1568 json j2;
1569 CHECK_NOTHROW(j2 = json::from_msgpack(packed));
1571 // compare parsed JSON values
1579 json::to_msgpack(j1, ss);
1580 json j3 = json::from_msgpack(ss.str());
1587 json::to_msgpack(j1, s);
1588 json j3 = json::from_msgpack(s);
1595 CHECK(j1 == json::from_msgpack(packed.begin() + 5, packed.end()));
1605 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/1.json"); in skip()
1606 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/2.json"); in skip()
1607 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/3.json"); in skip()
1608 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/4.json"); in skip()
1609 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/5.json"); in skip()
1610 exclude_packed.insert(TEST_DATA_DIRECTORY "/json_testsuite/sample.json"); // kills AppVeyor in skip()
1611 exclude_packed.insert(TEST_DATA_DIRECTORY "/json_tests/pass1.json"); in skip()
1612 exclude_packed.insert(TEST_DATA_DIRECTORY "/regression/working_file.json"); in skip()
1613 exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object.json"); in skip()
1614 … exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_basic.json"); in skip()
1615 …packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key.json"); in skip()
1616 …e_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_long_strings.json"); in skip()
1617 …exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_simple.json"); in skip()
1618 …packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_string_unicode.json"); in skip()
1622 TEST_DATA_DIRECTORY "/json_nlohmann_tests/all_unicode.json", in skip()
1623 TEST_DATA_DIRECTORY "/json.org/1.json", in skip()
1624 TEST_DATA_DIRECTORY "/json.org/2.json", in skip()
1625 TEST_DATA_DIRECTORY "/json.org/3.json", in skip()
1626 TEST_DATA_DIRECTORY "/json.org/4.json", in skip()
1627 TEST_DATA_DIRECTORY "/json.org/5.json", in skip()
1628 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip01.json", in skip()
1629 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip02.json", in skip()
1630 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip03.json", in skip()
1631 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip04.json", in skip()
1632 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip05.json", in skip()
1633 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip06.json", in skip()
1634 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip07.json", in skip()
1635 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip08.json", in skip()
1636 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip09.json", in skip()
1637 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip10.json", in skip()
1638 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip11.json", in skip()
1639 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip12.json", in skip()
1640 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip13.json", in skip()
1641 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip14.json", in skip()
1642 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip15.json", in skip()
1643 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip16.json", in skip()
1644 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip17.json", in skip()
1645 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip18.json", in skip()
1646 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip19.json", in skip()
1647 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip20.json", in skip()
1648 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip21.json", in skip()
1649 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip22.json", in skip()
1650 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip23.json", in skip()
1651 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip24.json", in skip()
1652 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip25.json", in skip()
1653 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip26.json", in skip()
1654 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip27.json", in skip()
1655 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip28.json", in skip()
1656 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip29.json", in skip()
1657 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip30.json", in skip()
1658 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip31.json", in skip()
1659 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip32.json", in skip()
1660 TEST_DATA_DIRECTORY "/json_testsuite/sample.json", // kills AppVeyor in skip()
1661 TEST_DATA_DIRECTORY "/json_tests/pass1.json", in skip()
1662 TEST_DATA_DIRECTORY "/json_tests/pass2.json", in skip()
1663 TEST_DATA_DIRECTORY "/json_tests/pass3.json", in skip()
1664 TEST_DATA_DIRECTORY "/regression/floats.json", in skip()
1665 TEST_DATA_DIRECTORY "/regression/signed_ints.json", in skip()
1666 TEST_DATA_DIRECTORY "/regression/unsigned_ints.json", in skip()
1667 TEST_DATA_DIRECTORY "/regression/working_file.json", in skip()
1668 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json", in skip()
1669 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_empty-string.json", in skip()
1670 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_empty.json", in skip()
1671 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json", in skip()
1672 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_false.json", in skip()
1673 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_heterogeneous.json", in skip()
1674 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_null.json", in skip()
1675 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json", in skip()
1676 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_leading_space.json", in skip()
1677 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_several_null.json", in skip()
1678 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json", in skip()
1679 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number.json", in skip()
1680 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_0e+1.json", in skip()
1681 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_0e1.json", in skip()
1682 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_after_space.json", in skip()
1683 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json", in skip()
1684 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json", in skip()
1685 //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_huge_exp.json", in skip()
1686 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_int_with_exp.json", in skip()
1687 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_minus_zero.json", in skip()
1688 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_int.json", in skip()
1689 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_one.json", in skip()
1690 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_zero.json", in skip()
1691 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e.json", in skip()
1692 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json", in skip()
1693 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json", in skip()
1694 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_exponent.json", in skip()
1695 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json", in skip()
1696 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json", in skip()
1697 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json", in skip()
1698 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json", in skip()
1699 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json", in skip()
1700 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_underflow.json", in skip()
1701 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_simple_int.json", in skip()
1702 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_simple_real.json", in skip()
1703 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json", in skip()
1704 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_too_big_pos_int.json", in skip()
1705 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_very_big_negative_int.json", in skip()
1706 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object.json", in skip()
1707 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_basic.json", in skip()
1708 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key.json", in skip()
1709 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json", in skip()
1710 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_empty.json", in skip()
1711 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_empty_key.json", in skip()
1712 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json", in skip()
1713 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json", in skip()
1714 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_long_strings.json", in skip()
1715 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_simple.json", in skip()
1716 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_string_unicode.json", in skip()
1717 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_with_newlines.json", in skip()
1718 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json", in skip()
1719 …Y "/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json", in skip()
1720 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json", in skip()
1721 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json", in skip()
1722 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json", in skip()
1723 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json", in skip()
1724 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json", in skip()
1725 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_comments.json", in skip()
1726 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_double_escape_a.json", in skip()
1727 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_double_escape_n.json", in skip()
1728 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json", in skip()
1729 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json", in skip()
1730 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_in_array.json", in skip()
1731 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json", in skip()
1732 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json", in skip()
1733 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json", in skip()
1734 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json", in skip()
1735 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json", in skip()
1736 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json", in skip()
1737 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_null_escape.json", in skip()
1738 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json", in skip()
1739 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_pi.json", in skip()
1740 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_simple_ascii.json", in skip()
1741 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_space.json", in skip()
1742 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json", in skip()
1743 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json", in skip()
1744 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json", in skip()
1745 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json", in skip()
1746 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_uEscape.json", in skip()
1747 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json", in skip()
1748 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode.json", in skip()
1749 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json", in skip()
1750 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_2.json", in skip()
1751 …ST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json", in skip()
1752 …TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json", in skip()
1753 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json", in skip()
1754 // TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_utf16.json", in skip()
1755 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_utf8.json", in skip()
1756 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_with_del_character.json", in skip()
1757 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_false.json", in skip()
1758 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_int.json", in skip()
1759 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json", in skip()
1760 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_null.json", in skip()
1761 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_string.json", in skip()
1762 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_true.json", in skip()
1763 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_string_empty.json", in skip()
1764 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json", in skip()
1765 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_true_in_array.json", in skip()
1766 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json" in skip()
1773 // parse JSON file in skip()
1775 json j1 = json::parse(f_json); in skip()
1779 json j2; in skip()
1780 CHECK_NOTHROW(j2 = json::from_msgpack(packed)); in skip()
1782 // compare parsed JSON values in skip()
1788 // parse JSON file in skip()
1790 json j1 = json::parse(f_json); in skip()
1794 json j2; in skip()
1795 CHECK_NOTHROW(j2 = json::from_msgpack(f_msgpack)); in skip()
1797 // compare parsed JSON values in skip()
1803 // parse JSON file in skip()
1805 json j1 = json::parse(f_json); in skip()
1809 json j2; in skip()
1810 CHECK_NOTHROW(j2 = json::from_msgpack({packed.data(), packed.size()})); in skip()
1812 // compare parsed JSON values in skip()
1818 // parse JSON file in skip()
1820 json j1 = json::parse(f_json); in skip()
1830 json::to_msgpack(j1, vec); in skip()