--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json ["\"] ``` ## AST ``` JsonRoot { value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonStringValue { value_token: JSON_STRING_LITERAL@1..5 "\"\\\"]" [] [], }, ], r_brack_token: missing (required), }, eof_token: EOF@5..5 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..5 0: JSON_ARRAY_VALUE@0..5 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..5 0: JSON_STRING_VALUE@1..5 0: JSON_STRING_LITERAL@1..5 "\"\\\"]" [] [] 2: (empty) 1: EOF@5..5 "" [] [] ``` ## Diagnostics ``` string_incomplete_escape.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Missing closing quote > 1 │ ["\"] │ ^^^^ i file ends here > 1 │ ["\"] │ string_incomplete_escape.json:1:6 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `]` but instead the file ends > 1 │ ["\"] │ i the file ends here > 1 │ ["\"] │ ```