1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/// Error message for unexpected character encountered during parsing
pub const ERR_UNEXPECTED_CHAR: &str = "Unexpected character: ";
/// Error message when input is empty
pub const ERR_EMPTY_INPUT: &str = "Empty input";
/// Error message when an object key is not a string
pub const ERR_OBJECT_KEY: &str = "Object key must be a string";
/// Error message when colon is missing after an object key
pub const ERR_EXPECT_COLON: &str = "Expected ':' after object key";
/// Error message when an object is not properly terminated
pub const ERR_EXPECT_OBJECT_END: &str = "Expected ',' or '}' in object";
/// Error message when an array is not properly terminated
pub const ERR_EXPECT_ARRAY_END: &str = "Expected ',' or ']' in array";
/// Error message for an invalid escape sequence in string
pub const ERR_INVALID_ESCAPE: &str = "Invalid escape sequence";
/// Error message for unterminated string
pub const ERR_UNTERMINATED_STRING: &str = "Unterminated string";
/// Error message when a number has multiple decimal points
pub const ERR_MULTIPLE_DECIMAL: &str = "Multiple decimal points in number";
/// Error message for invalid float number format
pub const ERR_INVALID_FLOAT: &str = "Invalid float number";
/// Error message for invalid integer number format
pub const ERR_INVALID_INTEGER: &str = "Invalid integer number";
/// Error message when true literal is expected but not found
pub const ERR_EXPECT_TRUE: &str = "Expected 'true'";
/// Error message when a false literal is expected but not found
pub const ERR_EXPECT_FALSE: &str = "Expected 'false'";
/// Error message when null literal is expected but not found
pub const ERR_EXPECT_NULL: &str = "Expected 'null'";
/// Error message for invalid UTF-8 encoding
pub const ERR_INVALID_UTF8: &str = "Invalid UTF-8 encoding";
/// Error message for invalid number format
pub const ERR_INVALID_NUMBER: &str = "Invalid number format";
/// Error message for unescaped control character in string
pub const ERR_UNESCAPED_CONTROL_CHAR: &str = "Unescaped control character in string";