--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json ["": 1] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonStringValue { value_token: JSON_STRING_LITERAL@1..3 "\"\"" [] [], }, missing separator, JsonBogusValue { items: [ COLON@3..5 ":" [] [Whitespace(" ")], ], }, missing separator, JsonNumberValue { value_token: JSON_NUMBER_LITERAL@5..6 "1" [] [], }, ], r_brack_token: R_BRACK@6..7 "]" [] [], }, eof_token: EOF@7..7 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..7 0: (empty) 1: JSON_ARRAY_VALUE@0..7 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..6 0: JSON_STRING_VALUE@1..3 0: JSON_STRING_LITERAL@1..3 "\"\"" [] [] 1: (empty) 2: JSON_BOGUS_VALUE@3..5 0: COLON@3..5 ":" [] [Whitespace(" ")] 3: (empty) 4: JSON_NUMBER_VALUE@5..6 0: JSON_NUMBER_LITERAL@5..6 "1" [] [] 2: R_BRACK@6..7 "]" [] [] 2: EOF@7..7 "" [] [] ``` ## Diagnostics ``` array_colon_instead_of_comma.json:1:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `:` > 1 │ ["": 1] │ ^ i Remove : array_colon_instead_of_comma.json:1:6 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `1` > 1 │ ["": 1] │ ^ i Remove 1 ```