Lines Matching defs:key
89 bool key(std::string& val)
91 events.push_back("key(" + val + ")");
177 bool key(std::string& /*val*/) override
978 "[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing object key - unexpected end of input; expected string literal", json::parse_error&);
986 "[json.exception.parse_error.101] parse error at line 1, column 10: syntax error while parsing object key - unexpected '}'; expected string literal", json::parse_error&);
1357 // test case to make sure no comma precedes the first key
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&);
1362 // test case to make sure the callback is properly evaluated after reading a key
1366 return event != json::parse_event_t::key;
1369 json x = json::parse("{\"key\": false}", cb);
1623 SECTION("second key")