--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {🇨🇭} ``` ## AST ``` JsonRoot { value: JsonBogusValue { items: [ L_CURLY@0..1 "{" [] [], JsonBogus { items: [ JsonBogusValue { items: [ ERROR_TOKEN@1..5 "🇨" [] [], ERROR_TOKEN@5..9 "🇭" [] [], ], }, ], }, R_CURLY@9..10 "}" [] [], ], }, eof_token: EOF@10..10 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..10 0: JSON_BOGUS_VALUE@0..10 0: L_CURLY@0..1 "{" [] [] 1: JSON_BOGUS@1..9 0: JSON_BOGUS_VALUE@1..9 0: ERROR_TOKEN@1..5 "🇨" [] [] 1: ERROR_TOKEN@5..9 "🇭" [] [] 2: R_CURLY@9..10 "}" [] [] 1: EOF@10..10 "" [] [] ``` ## Diagnostics ``` object_emoji.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `🇨` > 1 │ {🇨🇭} │ ^ object_emoji.json:1:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `🇭` > 1 │ {🇨🇭} │ ^ ```