--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [ , ""] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..4 "[" [] [Whitespace(" ")], elements: JsonArrayElementList [ missing element, COMMA@4..6 "," [] [Whitespace(" ")], JsonStringValue { value_token: JSON_STRING_LITERAL@6..8 "\"\"" [] [], }, ], r_brack_token: R_BRACK@8..9 "]" [] [], }, eof_token: EOF@9..9 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..9 0: (empty) 1: JSON_ARRAY_VALUE@0..9 0: L_BRACK@0..4 "[" [] [Whitespace(" ")] 1: JSON_ARRAY_ELEMENT_LIST@4..8 0: (empty) 1: COMMA@4..6 "," [] [Whitespace(" ")] 2: JSON_STRING_VALUE@6..8 0: JSON_STRING_LITERAL@6..8 "\"\"" [] [] 2: R_BRACK@8..9 "]" [] [] 2: EOF@9..9 "" [] [] ``` ## Diagnostics ``` array_missing_value.json:1:5 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an array, an object, or a literal but instead found ','. > 1 │ [ , ""] │ ^ i Expected an array, an object, or a literal here. > 1 │ [ , ""] │ ^ ```