• Home
  • Raw
  • Download

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;
43 bool number_integer(json::number_integer_t /*unused*/) in number_integer()
48 bool number_unsigned(json::number_unsigned_t /*unused*/) in number_unsigned()
53 bool number_float(json::number_float_t /*unused*/, const std::string& /*unused*/) in number_float()
93 …bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/, const json::exception& /*u… in parse_error()
110 json const j = json::value_t::discarded;
111 const auto result = json::to_msgpack(j);
117 json const j = nullptr;
119 const auto result = json::to_msgpack(j);
123 CHECK(json::from_msgpack(result) == j);
124 CHECK(json::from_msgpack(result, true, false) == j);
131 json const j = true;
133 const auto result = json::to_msgpack(j);
137 CHECK(json::from_msgpack(result) == j);
138 CHECK(json::from_msgpack(result, true, false) == j);
143 json const j = false;
145 const auto result = json::to_msgpack(j);
149 CHECK(json::from_msgpack(result) == j);
150 CHECK(json::from_msgpack(result, true, false) == j);
164 // create JSON value with integer number
165 json const j = i;
177 const auto result = json::to_msgpack(j);
185 CHECK(json::from_msgpack(result) == j);
186 CHECK(json::from_msgpack(result, true, false) == j);
196 // create JSON value with integer number
197 json j = -1;
198 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
207 const auto result = json::to_msgpack(j);
215 CHECK(json::from_msgpack(result) == j);
216 CHECK(json::from_msgpack(result, true, false) == j);
226 // create JSON value with integer number
227 json j = -1;
228 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
241 const auto result = json::to_msgpack(j);
251 CHECK(json::from_msgpack(result) == j);
252 CHECK(json::from_msgpack(result, true, false) == j);
262 // create JSON value with integer number
263 json j = -1;
264 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
278 const auto result = json::to_msgpack(j);
288 CHECK(json::from_msgpack(result) == j);
289 CHECK(json::from_msgpack(result, true, false) == j);
302 // create JSON value with integer number
303 json j = -1;
304 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
320 const auto result = json::to_msgpack(j);
333 CHECK(json::from_msgpack(result) == j);
334 CHECK(json::from_msgpack(result, true, false) == j);
347 // create JSON value with integer number
348 json j = -1;
349 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
369 const auto result = json::to_msgpack(j);
386 CHECK(json::from_msgpack(result) == j);
387 CHECK(json::from_msgpack(result, true, false) == j);
397 // create JSON value with integer number
398 json const j = i;
411 const auto result = json::to_msgpack(j);
420 CHECK(json::from_msgpack(result) == j);
421 CHECK(json::from_msgpack(result, true, false) == j);
427 json const j = -9263;
430 const auto result = json::to_msgpack(j);
437 CHECK(json::from_msgpack(result) == j);
438 CHECK(json::from_msgpack(result, true, false) == j);
447 // create JSON value with integer number
448 json const j = i;
462 const auto result = json::to_msgpack(j);
472 CHECK(json::from_msgpack(result) == j);
473 CHECK(json::from_msgpack(result, true, false) == j);
491 // create JSON value with integer number
492 json const j = i;
508 const auto result = json::to_msgpack(j);
521 CHECK(json::from_msgpack(result) == j);
522 CHECK(json::from_msgpack(result, true, false) == j);
537 // create JSON value with unsigned integer number
538 json const j = i;
558 const auto result = json::to_msgpack(j);
575 CHECK(json::from_msgpack(result) == j);
576 CHECK(json::from_msgpack(result, true, false) == j);
589 // create JSON value with unsigned integer number
590 json const j = i;
599 const auto result = json::to_msgpack(j);
607 CHECK(json::from_msgpack(result) == j);
608 CHECK(json::from_msgpack(result, true, false) == j);
618 // create JSON value with unsigned integer number
619 json const j = i;
632 const auto result = json::to_msgpack(j);
642 CHECK(json::from_msgpack(result) == j);
643 CHECK(json::from_msgpack(result, true, false) == j);
653 // create JSON value with unsigned integer number
654 json const j = i;
668 const auto result = json::to_msgpack(j);
678 CHECK(json::from_msgpack(result) == j);
679 CHECK(json::from_msgpack(result, true, false) == j);
692 // create JSON value with unsigned integer number
693 json const j = i;
709 const auto result = json::to_msgpack(j);
722 CHECK(json::from_msgpack(result) == j);
723 CHECK(json::from_msgpack(result, true, false) == j);
736 // create JSON value with unsigned integer number
737 json const j = i;
757 const auto result = json::to_msgpack(j);
774 CHECK(json::from_msgpack(result) == j);
775 CHECK(json::from_msgpack(result, true, false) == j);
785 json const j = v;
790 const auto result = json::to_msgpack(j);
794 CHECK(json::from_msgpack(result) == j);
795 CHECK(json::from_msgpack(result) == v);
796 CHECK(json::from_msgpack(result, true, false) == j);
802 json const j = v;
807 const auto result = json::to_msgpack(j);
811 CHECK(json::from_msgpack(result) == j);
812 CHECK(json::from_msgpack(result) == v);
813 CHECK(json::from_msgpack(result, true, false) == j);
819 json const j = v;
824 const auto result = json::to_msgpack(j);
828 CHECK(json::from_msgpack(result) == j);
829 CHECK(json::from_msgpack(result) == v);
830 CHECK(json::from_msgpack(result, true, false) == j);
852 // create JSON value with string containing of N * 'x'
854 json const j = s;
868 const auto result = json::to_msgpack(j);
878 CHECK(json::from_msgpack(result) == j);
879 CHECK(json::from_msgpack(result, true, false) == j);
889 // create JSON value with string containing of N * 'x'
891 json const j = s;
903 const auto result = json::to_msgpack(j);
910 CHECK(json::from_msgpack(result) == j);
911 CHECK(json::from_msgpack(result, true, false) == j);
924 // create JSON value with string containing of N * 'x'
926 json const j = s;
936 const auto result = json::to_msgpack(j);
943 CHECK(json::from_msgpack(result) == j);
944 CHECK(json::from_msgpack(result, true, false) == j);
957 // create JSON value with string containing of N * 'x'
959 json const j = s;
971 const auto result = json::to_msgpack(j);
978 CHECK(json::from_msgpack(result) == j);
979 CHECK(json::from_msgpack(result, true, false) == j);
988 json const j = json::array();
990 const auto result = json::to_msgpack(j);
994 CHECK(json::from_msgpack(result) == j);
995 CHECK(json::from_msgpack(result, true, false) == j);
1000 json const j = {nullptr};
1002 const auto result = json::to_msgpack(j);
1006 CHECK(json::from_msgpack(result) == j);
1007 CHECK(json::from_msgpack(result, true, false) == j);
1012 json const j = json::parse("[1,2,3,4,5]");
1014 const auto result = json::to_msgpack(j);
1018 CHECK(json::from_msgpack(result) == j);
1019 CHECK(json::from_msgpack(result, true, false) == j);
1024 json const j = json::parse("[[[[]]]]");
1026 const auto result = json::to_msgpack(j);
1030 CHECK(json::from_msgpack(result) == j);
1031 CHECK(json::from_msgpack(result, true, false) == j);
1036 json j(16, nullptr);
1041 const auto result = json::to_msgpack(j);
1045 CHECK(json::from_msgpack(result) == j);
1046 CHECK(json::from_msgpack(result, true, false) == j);
1051 json j(65536, nullptr);
1058 const auto result = json::to_msgpack(j);
1069 CHECK(json::from_msgpack(result) == j);
1070 CHECK(json::from_msgpack(result, true, false) == j);
1078 json const j = json::object();
1080 const auto result = json::to_msgpack(j);
1084 CHECK(json::from_msgpack(result) == j);
1085 CHECK(json::from_msgpack(result, true, false) == j);
1090 json const j = {{"", nullptr}};
1092 const auto result = json::to_msgpack(j);
1096 CHECK(json::from_msgpack(result) == j);
1097 CHECK(json::from_msgpack(result, true, false) == j);
1102 json const j = json::parse(R"({"a": {"b": {"c": {}}}})");
1107 const auto result = json::to_msgpack(j);
1111 CHECK(json::from_msgpack(result) == j);
1112 CHECK(json::from_msgpack(result, true, false) == j);
1117 json const j = R"({"00": null, "01": null, "02": null, "03": null,
1122 const auto result = json::to_msgpack(j);
1135 CHECK(json::from_msgpack(result) == j);
1136 CHECK(json::from_msgpack(result, true, false) == j);
1141 json j;
1151 const auto result = json::to_msgpack(j);
1166 CHECK(json::from_msgpack(result) == j);
1167 CHECK(json::from_msgpack(result, true, false) == j);
1179 // create JSON value with byte array containing of N * 'x'
1181 json j = json::binary(s);
1217 const auto result = json::to_msgpack(j);
1240 CHECK(json::from_msgpack(result) == j);
1241 CHECK(json::from_msgpack(result, true, false) == j);
1254 // create JSON value with string containing of N * 'x'
1256 json j = json::binary(s);
1269 const auto result = json::to_msgpack(j);
1276 CHECK(json::from_msgpack(result) == j);
1277 CHECK(json::from_msgpack(result, true, false) == j);
1290 // create JSON value with string containing of N * 'x'
1292 json j = json::binary(s);
1307 const auto result = json::to_msgpack(j);
1314 CHECK(json::from_msgpack(result) == j);
1315 CHECK(json::from_msgpack(result, true, false) == j);
1328 // create JSON value with byte array containing of N * 'x'
1330 json const j = json::binary(s);
1342 const auto result = json::to_msgpack(j);
1352 CHECK(json::from_msgpack(result) == j);
1353 CHECK(json::from_msgpack(result, true, false) == j);
1366 // create JSON value with string containing of N * 'x'
1368 json const j = json::binary(s);
1378 const auto result = json::to_msgpack(j);
1385 CHECK(json::from_msgpack(result) == j);
1386 CHECK(json::from_msgpack(result, true, false) == j);
1399 // create JSON value with string containing of N * 'x'
1401 json const j = json::binary(s);
1413 const auto result = json::to_msgpack(j);
1420 CHECK(json::from_msgpack(result) == j);
1421 CHECK(json::from_msgpack(result, true, false) == j);
1430 json const j = json::from_msgpack(given);
1438 json _;
1439json::from_msgpack(std::vector<uint8_t>()), "[json.exception.parse_error.110] parse error at byte …
1440 CHECK(json::from_msgpack(std::vector<uint8_t>(), true, false).is_discarded());
1445 json _;
1447 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x87})),
1448 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack st…
1449 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcc})),
1450 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1451 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcd})),
1452 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1453 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcd, 0x00})),
1454 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1455 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce})),
1456 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1457 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00})),
1458 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1459 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00})),
1460 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack nu…
1461 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00, 0x00})),
1462 …"[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing MessagePack nu…
1463 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf})),
1464 …"[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing MessagePack nu…
1465 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00})),
1466 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack nu…
1467 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00})),
1468 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack nu…
1469 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00})),
1470 …"[json.exception.parse_error.110] parse error at byte 5: syntax error while parsing MessagePack nu…
1471 … CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00})),
1472 …"[json.exception.parse_error.110] parse error at byte 6: syntax error while parsing MessagePack nu…
1473 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1474 …"[json.exception.parse_error.110] parse error at byte 7: syntax error while parsing MessagePack nu…
1475 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1476 …"[json.exception.parse_error.110] parse error at byte 8: syntax error while parsing MessagePack nu…
1477 …CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x…
1478 …"[json.exception.parse_error.110] parse error at byte 9: syntax error while parsing MessagePack nu…
1479 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xa5, 0x68, 0x65})),
1480 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack st…
1481 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x92, 0x01})),
1482 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack va…
1483 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0x81, 0xa1, 0x61})),
1484 …"[json.exception.parse_error.110] parse error at byte 4: syntax error while parsing MessagePack va…
1485 CHECK_THROWS_WITH_AS(_ = json::from_msgpack(std::vector<uint8_t>({0xc4, 0x02})),
1486 …"[json.exception.parse_error.110] parse error at byte 3: syntax error while parsing MessagePack bi…
1488 CHECK(json::from_msgpack(std::vector<uint8_t>({0x87}), true, false).is_discarded());
1489 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcc}), true, false).is_discarded());
1490 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcd}), true, false).is_discarded());
1491 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcd, 0x00}), true, false).is_discarded());
1492 CHECK(json::from_msgpack(std::vector<uint8_t>({0xce}), true, false).is_discarded());
1493 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00}), true, false).is_discarded());
1494 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00}), true, false).is_discarded());
1495 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xce, 0x00, 0x00, 0x00}), true, false).is_discarded…
1496 CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf}), true, false).is_discarded());
1497 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00}), true, false).is_discarded());
1498 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00}), true, false).is_discarded());
1499 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00}), true, false).is_discarded…
1500 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00}), true, false).is_dis…
1501 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00}), true, false).…
1502 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), true, f…
1503 …CHECK(json::from_msgpack(std::vector<uint8_t>({0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), t…
1504 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xa5, 0x68, 0x65}), true, false).is_discarded());
1505 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x92, 0x01}), true, false).is_discarded());
1506 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x81, 0xA1, 0x61}), true, false).is_discarded());
1507 … CHECK(json::from_msgpack(std::vector<uint8_t>({0xc4, 0x02}), true, false).is_discarded());
1508 CHECK(json::from_msgpack(std::vector<uint8_t>({0xc4}), true, false).is_discarded());
1515 json _;
1516json::from_msgpack(std::vector<uint8_t>({0xc1})), "[json.exception.parse_error.112] parse error at…
1527 json _;
1528 …CHECK_THROWS_AS(_ = json::from_msgpack(std::vector<uint8_t>({static_cast<uint8_t>(byte)})), json::…
1529 …CHECK(json::from_msgpack(std::vector<uint8_t>({static_cast<uint8_t>(byte)}), true, false).is_disca…
1536 json _;
1537json::from_msgpack(std::vector<uint8_t>({0x81, 0xff, 0x01})), "[json.exception.parse_error.113] pa…
1538 … CHECK(json::from_msgpack(std::vector<uint8_t>({0x81, 0xff, 0x01}), true, false).is_discarded());
1546 const auto result = json::from_msgpack(vec, false);
1547 CHECK(result == json());
1552 json _;
1553json::from_msgpack(vec), "[json.exception.parse_error.110] parse error at byte 2: syntax error whi…
1554 CHECK(json::from_msgpack(vec, true, false).is_discarded());
1565 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1572 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1579 CHECK(!json::sax_parse(v, &scp, json::input_format_t::msgpack));
1587 SECTION("sample.json")
1589 std::string const filename = TEST_DATA_DIRECTORY "/json_testsuite/sample.json";
1591 // parse JSON file
1593 json j1 = json::parse(f_json);
1597 json j2;
1598 CHECK_NOTHROW(j2 = json::from_msgpack(packed));
1600 // compare parsed JSON values
1608 json::to_msgpack(j1, ss);
1609 json j3 = json::from_msgpack(ss.str());
1616 json::to_msgpack(j1, s);
1617 json j3 = json::from_msgpack(s);
1624 CHECK(j1 == json::from_msgpack(packed.begin() + 5, packed.end()));
1634 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/1.json"); in skip()
1635 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/2.json"); in skip()
1636 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/3.json"); in skip()
1637 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/4.json"); in skip()
1638 exclude_packed.insert(TEST_DATA_DIRECTORY "/json.org/5.json"); in skip()
1639 exclude_packed.insert(TEST_DATA_DIRECTORY "/json_testsuite/sample.json"); // kills AppVeyor in skip()
1640 exclude_packed.insert(TEST_DATA_DIRECTORY "/json_tests/pass1.json"); in skip()
1641 exclude_packed.insert(TEST_DATA_DIRECTORY "/regression/working_file.json"); in skip()
1642 exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object.json"); in skip()
1643 … exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_basic.json"); in skip()
1644 …packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key.json"); in skip()
1645 …e_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_long_strings.json"); in skip()
1646 …exclude_packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_simple.json"); in skip()
1647 …packed.insert(TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_string_unicode.json"); in skip()
1651 TEST_DATA_DIRECTORY "/json_nlohmann_tests/all_unicode.json", in skip()
1652 TEST_DATA_DIRECTORY "/json.org/1.json", in skip()
1653 TEST_DATA_DIRECTORY "/json.org/2.json", in skip()
1654 TEST_DATA_DIRECTORY "/json.org/3.json", in skip()
1655 TEST_DATA_DIRECTORY "/json.org/4.json", in skip()
1656 TEST_DATA_DIRECTORY "/json.org/5.json", in skip()
1657 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip01.json", in skip()
1658 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip02.json", in skip()
1659 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip03.json", in skip()
1660 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip04.json", in skip()
1661 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip05.json", in skip()
1662 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip06.json", in skip()
1663 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip07.json", in skip()
1664 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip08.json", in skip()
1665 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip09.json", in skip()
1666 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip10.json", in skip()
1667 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip11.json", in skip()
1668 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip12.json", in skip()
1669 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip13.json", in skip()
1670 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip14.json", in skip()
1671 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip15.json", in skip()
1672 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip16.json", in skip()
1673 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip17.json", in skip()
1674 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip18.json", in skip()
1675 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip19.json", in skip()
1676 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip20.json", in skip()
1677 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip21.json", in skip()
1678 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip22.json", in skip()
1679 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip23.json", in skip()
1680 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip24.json", in skip()
1681 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip25.json", in skip()
1682 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip26.json", in skip()
1683 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip27.json", in skip()
1684 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip28.json", in skip()
1685 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip29.json", in skip()
1686 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip30.json", in skip()
1687 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip31.json", in skip()
1688 TEST_DATA_DIRECTORY "/json_roundtrip/roundtrip32.json", in skip()
1689 TEST_DATA_DIRECTORY "/json_testsuite/sample.json", // kills AppVeyor in skip()
1690 TEST_DATA_DIRECTORY "/json_tests/pass1.json", in skip()
1691 TEST_DATA_DIRECTORY "/json_tests/pass2.json", in skip()
1692 TEST_DATA_DIRECTORY "/json_tests/pass3.json", in skip()
1693 TEST_DATA_DIRECTORY "/regression/floats.json", in skip()
1694 TEST_DATA_DIRECTORY "/regression/signed_ints.json", in skip()
1695 TEST_DATA_DIRECTORY "/regression/unsigned_ints.json", in skip()
1696 TEST_DATA_DIRECTORY "/regression/working_file.json", in skip()
1697 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json", in skip()
1698 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_empty-string.json", in skip()
1699 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_empty.json", in skip()
1700 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json", in skip()
1701 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_false.json", in skip()
1702 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_heterogeneous.json", in skip()
1703 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_null.json", in skip()
1704 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json", in skip()
1705 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_leading_space.json", in skip()
1706 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_several_null.json", in skip()
1707 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json", in skip()
1708 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number.json", in skip()
1709 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_0e+1.json", in skip()
1710 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_0e1.json", in skip()
1711 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_after_space.json", in skip()
1712 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json", in skip()
1713 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json", in skip()
1714 //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_huge_exp.json", in skip()
1715 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_int_with_exp.json", in skip()
1716 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_minus_zero.json", in skip()
1717 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_int.json", in skip()
1718 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_one.json", in skip()
1719 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_negative_zero.json", in skip()
1720 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e.json", in skip()
1721 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json", in skip()
1722 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json", in skip()
1723 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_exponent.json", in skip()
1724 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json", in skip()
1725 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json", in skip()
1726 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json", in skip()
1727 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json", in skip()
1728 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json", in skip()
1729 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_real_underflow.json", in skip()
1730 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_simple_int.json", in skip()
1731 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_simple_real.json", in skip()
1732 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json", in skip()
1733 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_too_big_pos_int.json", in skip()
1734 … //TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_number_very_big_negative_int.json", in skip()
1735 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object.json", in skip()
1736 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_basic.json", in skip()
1737 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key.json", in skip()
1738 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json", in skip()
1739 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_empty.json", in skip()
1740 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_empty_key.json", in skip()
1741 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json", in skip()
1742 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json", in skip()
1743 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_long_strings.json", in skip()
1744 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_simple.json", in skip()
1745 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_string_unicode.json", in skip()
1746 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_object_with_newlines.json", in skip()
1747 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json", in skip()
1748 …Y "/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json", in skip()
1749 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json", in skip()
1750 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json", in skip()
1751 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json", in skip()
1752 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json", in skip()
1753 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json", in skip()
1754 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_comments.json", in skip()
1755 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_double_escape_a.json", in skip()
1756 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_double_escape_n.json", in skip()
1757 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json", in skip()
1758 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json", in skip()
1759 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_in_array.json", in skip()
1760 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json", in skip()
1761 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json", in skip()
1762 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json", in skip()
1763 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json", in skip()
1764 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json", in skip()
1765 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json", in skip()
1766 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_null_escape.json", in skip()
1767 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json", in skip()
1768 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_pi.json", in skip()
1769 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_simple_ascii.json", in skip()
1770 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_space.json", in skip()
1771 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json", in skip()
1772 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json", in skip()
1773 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json", in skip()
1774 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json", in skip()
1775 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_uEscape.json", in skip()
1776 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json", in skip()
1777 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode.json", in skip()
1778 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json", in skip()
1779 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_2.json", in skip()
1780 …ST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json", in skip()
1781 …TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json", in skip()
1782 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json", in skip()
1783 // TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_utf16.json", in skip()
1784 TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_utf8.json", in skip()
1785 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_string_with_del_character.json", in skip()
1786 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_false.json", in skip()
1787 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_int.json", in skip()
1788 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json", in skip()
1789 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_null.json", in skip()
1790 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_string.json", in skip()
1791 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_lonely_true.json", in skip()
1792 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_string_empty.json", in skip()
1793 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json", in skip()
1794 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_true_in_array.json", in skip()
1795 … TEST_DATA_DIRECTORY "/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json" in skip()
1802 // parse JSON file in skip()
1804 json j1 = json::parse(f_json); in skip()
1808 json j2; in skip()
1809 CHECK_NOTHROW(j2 = json::from_msgpack(packed)); in skip()
1811 // compare parsed JSON values in skip()
1817 // parse JSON file in skip()
1819 json j1 = json::parse(f_json); in skip()
1823 json j2; in skip()
1824 CHECK_NOTHROW(j2 = json::from_msgpack(f_msgpack)); in skip()
1826 // compare parsed JSON values in skip()
1832 // parse JSON file in skip()
1834 json j1 = json::parse(f_json); in skip()
1838 json j2; in skip()
1839 CHECK_NOTHROW(j2 = json::from_msgpack({packed.data(), packed.size()})); in skip()
1841 // compare parsed JSON values in skip()
1847 // parse JSON file in skip()
1849 json const j1 = json::parse(f_json); in skip()
1859 json::to_msgpack(j1, vec); in skip()