2.3.3, 2.3.4, 2.3.10: unsupported_key_type, empty_input_message, input_format_name in the readers (#5891)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-23 10:30:32 +02:00
1 parent 0721d3c389
commit d556800512
3 files changed
+18 -37

No files matched your search

+1 -1
View File
@@ -404,7 +404,7 @@ class parser
{
if (JSON_HEDLEY_UNLIKELY(m_lexer.get_chars_read_total() == 1))
{
return syntax_error(*sax, "attempting to parse an empty input; check that your input string or stream contains the expected JSON");
return syntax_error(*sax, empty_input_message());
}
return syntax_error(*sax, exception_message(token_type::literal_or_value, "value"));