--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json "\UA66D" ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonBogusValue { items: [ ERROR_TOKEN@0..8 "\"\\UA66D\"" [] [], ], }, eof_token: EOF@8..8 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..8 0: (empty) 1: JSON_BOGUS_VALUE@0..8 0: ERROR_TOKEN@0..8 "\"\\UA66D\"" [] [] 2: EOF@8..8 "" [] [] ``` ## Diagnostics ``` string_unicode_CapitalU.json:1:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an array, an object, or a literal but instead found '"\UA66D"'. > 1 │ "\UA66D" │ ^^^^^^^^ i Expected an array, an object, or a literal here. > 1 │ "\UA66D" │ ^^^^^^^^ string_unicode_CapitalU.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Invalid escape sequence > 1 │ "\UA66D" │ ^^ i Valid escape sequences are: `\\`, `\/`, `/"`, `\b\`, `\f`, `\n`, `\r`, `\t` or any unicode escape sequence `\uXXXX` where X is hexedecimal number. ```