Lines Matching refs:parser_helper
206 json parser_helper(const std::string& s);
210 json parser_helper(const std::string& s)
313 CHECK(parser_helper("null") == json(nullptr));
318 CHECK(parser_helper("true") == json(true));
323 CHECK(parser_helper("false") == json(false));
330 CHECK(parser_helper("[]") == json(json::value_t::array));
331 CHECK(parser_helper("[ ]") == json(json::value_t::array));
336 CHECK(parser_helper("[true, false, null]") == json({true, false, nullptr}));
344 CHECK(parser_helper("{}") == json(json::value_t::object));
345 CHECK(parser_helper("{ }") == json(json::value_t::object));
350 CHECK(parser_helper("{\"\": true, \"one\": 1, \"two\": null}") == json({{"", true}, {"one", 1}, {"two", nullptr}}));
357 CHECK(parser_helper("\"\"") == json(json::value_t::string));
362 CHECK_THROWS_WITH_AS(parser_helper("\"\t\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t; last read: '\"<U+0009>'", json::parse_error&);
364 CHECK_THROWS_WITH_AS(parser_helper("\"\n\""), "[json.exception.parse_error.101] parse error at line 2, column 0: syntax error while parsing value - invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n; last read: '\"<U+000A>'", json::parse_error&);
365 CHECK_THROWS_WITH_AS(parser_helper("\"\r\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r; last read: '\"<U+000D>'", json::parse_error&);
367 CHECK_THROWS_WITH_AS(parser_helper("\"\b\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b; last read: '\"<U+0008>'", json::parse_error&);
369 CHECK_THROWS_AS(parser_helper("\uFF01"), json::parse_error&);
370 CHECK_THROWS_AS(parser_helper("[-4:1,]"), json::parse_error&);
372 CHECK_THROWS_WITH_AS(parser_helper("\"\x00\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: missing closing quote; last read: '\"'", json::parse_error&); // NOLINT(bugprone-string-literal-with-embedded-nul)
373 CHECK_THROWS_WITH_AS(parser_helper("\"\x01\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0001 (SOH) must be escaped to \\u0001; last read: '\"<U+0001>'", json::parse_error&);
374 CHECK_THROWS_WITH_AS(parser_helper("\"\x02\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0002 (STX) must be escaped to \\u0002; last read: '\"<U+0002>'", json::parse_error&);
375 CHECK_THROWS_WITH_AS(parser_helper("\"\x03\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0003 (ETX) must be escaped to \\u0003; last read: '\"<U+0003>'", json::parse_error&);
376 CHECK_THROWS_WITH_AS(parser_helper("\"\x04\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0004 (EOT) must be escaped to \\u0004; last read: '\"<U+0004>'", json::parse_error&);
377 CHECK_THROWS_WITH_AS(parser_helper("\"\x05\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0005 (ENQ) must be escaped to \\u0005; last read: '\"<U+0005>'", json::parse_error&);
378 CHECK_THROWS_WITH_AS(parser_helper("\"\x06\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0006 (ACK) must be escaped to \\u0006; last read: '\"<U+0006>'", json::parse_error&);
379 CHECK_THROWS_WITH_AS(parser_helper("\"\x07\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0007 (BEL) must be escaped to \\u0007; last read: '\"<U+0007>'", json::parse_error&);
380 CHECK_THROWS_WITH_AS(parser_helper("\"\x08\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b; last read: '\"<U+0008>'", json::parse_error&);
381 CHECK_THROWS_WITH_AS(parser_helper("\"\x09\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t; last read: '\"<U+0009>'", json::parse_error&);
382 CHECK_THROWS_WITH_AS(parser_helper("\"\x0a\""), "[json.exception.parse_error.101] parse error at line 2, column 0: syntax error while parsing value - invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n; last read: '\"<U+000A>'", json::parse_error&);
383 CHECK_THROWS_WITH_AS(parser_helper("\"\x0b\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000B (VT) must be escaped to \\u000B; last read: '\"<U+000B>'", json::parse_error&);
384 CHECK_THROWS_WITH_AS(parser_helper("\"\x0c\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f; last read: '\"<U+000C>'", json::parse_error&);
385 CHECK_THROWS_WITH_AS(parser_helper("\"\x0d\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r; last read: '\"<U+000D>'", json::parse_error&);
386 CHECK_THROWS_WITH_AS(parser_helper("\"\x0e\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000E (SO) must be escaped to \\u000E; last read: '\"<U+000E>'", json::parse_error&);
387 CHECK_THROWS_WITH_AS(parser_helper("\"\x0f\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+000F (SI) must be escaped to \\u000F; last read: '\"<U+000F>'", json::parse_error&);
388 CHECK_THROWS_WITH_AS(parser_helper("\"\x10\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0010 (DLE) must be escaped to \\u0010; last read: '\"<U+0010>'", json::parse_error&);
389 CHECK_THROWS_WITH_AS(parser_helper("\"\x11\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0011 (DC1) must be escaped to \\u0011; last read: '\"<U+0011>'", json::parse_error&);
390 CHECK_THROWS_WITH_AS(parser_helper("\"\x12\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0012 (DC2) must be escaped to \\u0012; last read: '\"<U+0012>'", json::parse_error&);
391 CHECK_THROWS_WITH_AS(parser_helper("\"\x13\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0013 (DC3) must be escaped to \\u0013; last read: '\"<U+0013>'", json::parse_error&);
392 CHECK_THROWS_WITH_AS(parser_helper("\"\x14\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0014 (DC4) must be escaped to \\u0014; last read: '\"<U+0014>'", json::parse_error&);
393 CHECK_THROWS_WITH_AS(parser_helper("\"\x15\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0015 (NAK) must be escaped to \\u0015; last read: '\"<U+0015>'", json::parse_error&);
394 CHECK_THROWS_WITH_AS(parser_helper("\"\x16\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0016 (SYN) must be escaped to \\u0016; last read: '\"<U+0016>'", json::parse_error&);
395 CHECK_THROWS_WITH_AS(parser_helper("\"\x17\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0017 (ETB) must be escaped to \\u0017; last read: '\"<U+0017>'", json::parse_error&);
396 CHECK_THROWS_WITH_AS(parser_helper("\"\x18\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0018 (CAN) must be escaped to \\u0018; last read: '\"<U+0018>'", json::parse_error&);
397 CHECK_THROWS_WITH_AS(parser_helper("\"\x19\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+0019 (EM) must be escaped to \\u0019; last read: '\"<U+0019>'", json::parse_error&);
398 CHECK_THROWS_WITH_AS(parser_helper("\"\x1a\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001A (SUB) must be escaped to \\u001A; last read: '\"<U+001A>'", json::parse_error&);
399 CHECK_THROWS_WITH_AS(parser_helper("\"\x1b\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001B (ESC) must be escaped to \\u001B; last read: '\"<U+001B>'", json::parse_error&);
400 CHECK_THROWS_WITH_AS(parser_helper("\"\x1c\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001C (FS) must be escaped to \\u001C; last read: '\"<U+001C>'", json::parse_error&);
401 CHECK_THROWS_WITH_AS(parser_helper("\"\x1d\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001D (GS) must be escaped to \\u001D; last read: '\"<U+001D>'", json::parse_error&);
402 CHECK_THROWS_WITH_AS(parser_helper("\"\x1e\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001E (RS) must be escaped to \\u001E; last read: '\"<U+001E>'", json::parse_error&);
403 CHECK_THROWS_WITH_AS(parser_helper("\"\x1f\""), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing value - invalid string: control character U+001F (US) must be escaped to \\u001F; last read: '\"<U+001F>'", json::parse_error&);
422 CHECK(parser_helper("\"\\\"\"") == r1);
425 CHECK(parser_helper("\"\\\\\"") == r2);
427 CHECK(parser_helper("\"\\/\"") == R"("/")"_json);
429 CHECK(parser_helper("\"\\b\"") == json("\b"));
431 CHECK(parser_helper("\"\\f\"") == json("\f"));
433 CHECK(parser_helper("\"\\n\"") == json("\n"));
435 CHECK(parser_helper("\"\\r\"") == json("\r"));
437 CHECK(parser_helper("\"\\t\"") == json("\t"));
439 CHECK(parser_helper("\"\\u0001\"").get<json::string_t>() == "\x01");
440 CHECK(parser_helper("\"\\u000a\"").get<json::string_t>() == "\n");
441 CHECK(parser_helper("\"\\u00b0\"").get<json::string_t>() == "°");
442 CHECK(parser_helper("\"\\u0c00\"").get<json::string_t>() == "ఀ");
443 CHECK(parser_helper("\"\\ud000\"").get<json::string_t>() == "퀀");
444 CHECK(parser_helper("\"\\u000E\"").get<json::string_t>() == "\x0E");
445 CHECK(parser_helper("\"\\u00F0\"").get<json::string_t>() == "ð");
446 CHECK(parser_helper("\"\\u0100\"").get<json::string_t>() == "Ā");
447 CHECK(parser_helper("\"\\u2000\"").get<json::string_t>() == " ");
448 CHECK(parser_helper("\"\\uFFFF\"").get<json::string_t>() == "");
449 CHECK(parser_helper("\"\\u20AC\"").get<json::string_t>() == "€");
450 CHECK(parser_helper("\"€\"").get<json::string_t>() == "€");
451 CHECK(parser_helper("\"?\"").get<json::string_t>() == "?");
453 CHECK(parser_helper("\"\\ud80c\\udc60\"").get<json::string_t>() == "\xf0\x93\x81\xa0");
454 CHECK(parser_helper("\"\\ud83c\\udf1e\"").get<json::string_t>() == "?");
464 CHECK(parser_helper("-128") == json(-128));
465 CHECK(parser_helper("-0") == json(-0));
466 CHECK(parser_helper("0") == json(0));
467 CHECK(parser_helper("128") == json(128));
472 CHECK(parser_helper("0e1") == json(0e1));
473 CHECK(parser_helper("0E1") == json(0e1));
475 CHECK(parser_helper("10000E-4") == json(10000e-4));
476 CHECK(parser_helper("10000E-3") == json(10000e-3));
477 CHECK(parser_helper("10000E-2") == json(10000e-2));
478 CHECK(parser_helper("10000E-1") == json(10000e-1));
479 CHECK(parser_helper("10000E0") == json(10000e0));
480 CHECK(parser_helper("10000E1") == json(10000e1));
481 CHECK(parser_helper("10000E2") == json(10000e2));
482 CHECK(parser_helper("10000E3") == json(10000e3));
483 CHECK(parser_helper("10000E4") == json(10000e4));
485 CHECK(parser_helper("10000e-4") == json(10000e-4));
486 CHECK(parser_helper("10000e-3") == json(10000e-3));
487 CHECK(parser_helper("10000e-2") == json(10000e-2));
488 CHECK(parser_helper("10000e-1") == json(10000e-1));
489 CHECK(parser_helper("10000e0") == json(10000e0));
490 CHECK(parser_helper("10000e1") == json(10000e1));
491 CHECK(parser_helper("10000e2") == json(10000e2));
492 CHECK(parser_helper("10000e3") == json(10000e3));
493 CHECK(parser_helper("10000e4") == json(10000e4));
495 CHECK(parser_helper("-0e1") == json(-0e1));
496 CHECK(parser_helper("-0E1") == json(-0e1));
497 CHECK(parser_helper("-0E123") == json(-0e123));
500 CHECK(parser_helper("10E0") == json(10e0));
501 CHECK(parser_helper("10E1") == json(10e1));
502 CHECK(parser_helper("10E2") == json(10e2));
503 CHECK(parser_helper("10E3") == json(10e3));
504 CHECK(parser_helper("10E4") == json(10e4));
505 CHECK(parser_helper("10E5") == json(10e5));
506 CHECK(parser_helper("10E6") == json(10e6));
507 CHECK(parser_helper("10E7") == json(10e7));
508 CHECK(parser_helper("10E8") == json(10e8));
509 CHECK(parser_helper("10E9") == json(10e9));
510 CHECK(parser_helper("10E+0") == json(10e0));
511 CHECK(parser_helper("10E+1") == json(10e1));
512 CHECK(parser_helper("10E+2") == json(10e2));
513 CHECK(parser_helper("10E+3") == json(10e3));
514 CHECK(parser_helper("10E+4") == json(10e4));
515 CHECK(parser_helper("10E+5") == json(10e5));
516 CHECK(parser_helper("10E+6") == json(10e6));
517 CHECK(parser_helper("10E+7") == json(10e7));
518 CHECK(parser_helper("10E+8") == json(10e8));
519 CHECK(parser_helper("10E+9") == json(10e9));
520 CHECK(parser_helper("10E-1") == json(10e-1));
521 CHECK(parser_helper("10E-2") == json(10e-2));
522 CHECK(parser_helper("10E-3") == json(10e-3));
523 CHECK(parser_helper("10E-4") == json(10e-4));
524 CHECK(parser_helper("10E-5") == json(10e-5));
525 CHECK(parser_helper("10E-6") == json(10e-6));
526 CHECK(parser_helper("10E-7") == json(10e-7));
527 CHECK(parser_helper("10E-8") == json(10e-8));
528 CHECK(parser_helper("10E-9") == json(10e-9));
540 CHECK(parser_helper("-9007199254740991").get<int64_t>() == -9007199254740991);
542 CHECK(parser_helper("9007199254740991").get<int64_t>() == 9007199254740991);
555 CHECK(parser_helper("-9223372036854775808").get<int64_t>() == -9223372036854775807 - 1);
557 CHECK(parser_helper("9223372036854775807").get<int64_t>() == 9223372036854775807);
559 CHECK(parser_helper("18446744073709551615").get<uint64_t>() == 18446744073709551615u);
567 CHECK(parser_helper("-128.5") == json(-128.5));
568 CHECK(parser_helper("0.999") == json(0.999));
569 CHECK(parser_helper("128.5") == json(128.5));
570 CHECK(parser_helper("-0.0") == json(-0.0));
575 CHECK(parser_helper("-128.5E3") == json(-128.5E3));
576 CHECK(parser_helper("-128.5E-3") == json(-128.5E-3));
577 CHECK(parser_helper("-0.0e1") == json(-0.0e1));
578 CHECK(parser_helper("-0.0E1") == json(-0.0e1));
585 CHECK_THROWS_WITH_AS(parser_helper("1.18973e+4932").empty(), "[json.exception.out_of_range.406] number overflow parsing '1.18973e+4932'", json::out_of_range&);
591 CHECK_THROWS_AS(parser_helper("+1"), json::parse_error&);
592 CHECK_THROWS_AS(parser_helper("+0"), json::parse_error&);
594 CHECK_THROWS_WITH_AS(parser_helper("01"),
596 CHECK_THROWS_WITH_AS(parser_helper("-01"),
598 CHECK_THROWS_WITH_AS(parser_helper("--1"),
600 CHECK_THROWS_WITH_AS(parser_helper("1."),
602 CHECK_THROWS_WITH_AS(parser_helper("1E"),
604 CHECK_THROWS_WITH_AS(parser_helper("1E-"),
606 CHECK_THROWS_WITH_AS(parser_helper("1.E1"),
608 CHECK_THROWS_WITH_AS(parser_helper("-1E"),
610 CHECK_THROWS_WITH_AS(parser_helper("-0E#"),
612 CHECK_THROWS_WITH_AS(parser_helper("-0E-#"),
614 CHECK_THROWS_WITH_AS(parser_helper("-0#"),
616 CHECK_THROWS_WITH_AS(parser_helper("-0.0:"),
618 CHECK_THROWS_WITH_AS(parser_helper("-0.0Z"),
620 CHECK_THROWS_WITH_AS(parser_helper("-0E123:"),
622 CHECK_THROWS_WITH_AS(parser_helper("-0e0-:"),
624 CHECK_THROWS_WITH_AS(parser_helper("-0e-:"),
626 CHECK_THROWS_WITH_AS(parser_helper("-0f"),
897 CHECK_THROWS_WITH_AS(parser_helper("0."),
899 CHECK_THROWS_WITH_AS(parser_helper("-"),
901 CHECK_THROWS_WITH_AS(parser_helper("--"),
903 CHECK_THROWS_WITH_AS(parser_helper("-0."),
905 CHECK_THROWS_WITH_AS(parser_helper("-."),
907 CHECK_THROWS_WITH_AS(parser_helper("-:"),
909 CHECK_THROWS_WITH_AS(parser_helper("0.:"),
911 CHECK_THROWS_WITH_AS(parser_helper("e."),
913 CHECK_THROWS_WITH_AS(parser_helper("1e."),
915 CHECK_THROWS_WITH_AS(parser_helper("1e/"),
917 CHECK_THROWS_WITH_AS(parser_helper("1e:"),
919 CHECK_THROWS_WITH_AS(parser_helper("1E."),
921 CHECK_THROWS_WITH_AS(parser_helper("1E/"),
923 CHECK_THROWS_WITH_AS(parser_helper("1E:"),
927 CHECK_THROWS_WITH_AS(parser_helper("n"),
929 CHECK_THROWS_WITH_AS(parser_helper("nu"),
931 CHECK_THROWS_WITH_AS(parser_helper("nul"),
933 CHECK_THROWS_WITH_AS(parser_helper("nulk"),
935 CHECK_THROWS_WITH_AS(parser_helper("nulm"),
939 CHECK_THROWS_WITH_AS(parser_helper("t"),
941 CHECK_THROWS_WITH_AS(parser_helper("tr"),
943 CHECK_THROWS_WITH_AS(parser_helper("tru"),
945 CHECK_THROWS_WITH_AS(parser_helper("trud"),
947 CHECK_THROWS_WITH_AS(parser_helper("truf"),
951 CHECK_THROWS_WITH_AS(parser_helper("f"),
953 CHECK_THROWS_WITH_AS(parser_helper("fa"),
955 CHECK_THROWS_WITH_AS(parser_helper("fal"),
957 CHECK_THROWS_WITH_AS(parser_helper("fals"),
959 CHECK_THROWS_WITH_AS(parser_helper("falsd"),
961 CHECK_THROWS_WITH_AS(parser_helper("falsf"),
965 CHECK_THROWS_WITH_AS(parser_helper("["),
967 CHECK_THROWS_WITH_AS(parser_helper("[1"),
969 CHECK_THROWS_WITH_AS(parser_helper("[1,"),
971 CHECK_THROWS_WITH_AS(parser_helper("[1,]"),
973 CHECK_THROWS_WITH_AS(parser_helper("]"),
977 CHECK_THROWS_WITH_AS(parser_helper("{"),
979 CHECK_THROWS_WITH_AS(parser_helper("{\"foo\""),
981 CHECK_THROWS_WITH_AS(parser_helper("{\"foo\":"),
983 CHECK_THROWS_WITH_AS(parser_helper("{\"foo\":}"),
985 CHECK_THROWS_WITH_AS(parser_helper("{\"foo\":1,}"),
987 CHECK_THROWS_WITH_AS(parser_helper("}"),
991 CHECK_THROWS_WITH_AS(parser_helper("\""),
993 CHECK_THROWS_WITH_AS(parser_helper("\"\\\""),
995 CHECK_THROWS_WITH_AS(parser_helper("\"\\u\""),
997 CHECK_THROWS_WITH_AS(parser_helper("\"\\u0\""),
999 CHECK_THROWS_WITH_AS(parser_helper("\"\\u01\""),
1001 CHECK_THROWS_WITH_AS(parser_helper("\"\\u012\""),
1003 CHECK_THROWS_WITH_AS(parser_helper("\"\\u"),
1005 CHECK_THROWS_WITH_AS(parser_helper("\"\\u0"),
1007 CHECK_THROWS_WITH_AS(parser_helper("\"\\u01"),
1009 CHECK_THROWS_WITH_AS(parser_helper("\"\\u012"),
1029 CHECK_NOTHROW(parser_helper(s));
1042 CHECK_THROWS_AS(parser_helper(s), json::parse_error&);
1046 CHECK_THROWS_WITH_STD_STR(parser_helper(s),
1107 CHECK_NOTHROW(parser_helper(s1));
1109 CHECK_NOTHROW(parser_helper(s2));
1111 CHECK_NOTHROW(parser_helper(s3));
1113 CHECK_NOTHROW(parser_helper(s4));
1118 CHECK_THROWS_AS(parser_helper(s1), json::parse_error&);
1122 CHECK_THROWS_WITH_STD_STR(parser_helper(s1),
1127 CHECK_THROWS_AS(parser_helper(s2), json::parse_error&);
1131 CHECK_THROWS_WITH_STD_STR(parser_helper(s2),
1136 CHECK_THROWS_AS(parser_helper(s3), json::parse_error&);
1140 CHECK_THROWS_WITH_STD_STR(parser_helper(s3),
1145 CHECK_THROWS_AS(parser_helper(s4), json::parse_error&);
1149 CHECK_THROWS_WITH_STD_STR(parser_helper(s4),
1231 CHECK(parser_helper("\n123\n") == 123);
1358 CHECK_THROWS_WITH_AS(parser_helper("{,\"key\": false}"), "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing object key - unexpected ','; expected string literal", json::parse_error&);
1360 CHECK_THROWS_WITH_AS(parser_helper("[{\"key\": false true]"), "[json.exception.parse_error.101] parse error at line 1, column 19: syntax error while parsing object - unexpected true literal; expected '}'", json::parse_error&);
1564 CHECK(parser_helper("true") == json(true));