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