--- 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..1 "[" [] [], elements: JsonArrayElementList [ JsonBogusValue { items: [ ERROR_TOKEN@1..2 "<" [] [], ], }, missing separator, JsonNullValue { value_token: NULL_KW@2..6 "null" [] [], }, missing separator, JsonBogusValue { items: [ ERROR_TOKEN@6..7 ">" [] [], ], }, ], r_brack_token: R_BRACK@7..8 "]" [] [], }, eof_token: EOF@8..8 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..8 0: (empty) 1: JSON_ARRAY_VALUE@0..8 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..7 0: JSON_BOGUS_VALUE@1..2 0: ERROR_TOKEN@1..2 "<" [] [] 1: (empty) 2: JSON_NULL_VALUE@2..6 0: NULL_KW@2..6 "null" [] [] 3: (empty) 4: JSON_BOGUS_VALUE@6..7 0: ERROR_TOKEN@6..7 ">" [] [] 2: R_BRACK@7..8 "]" [] [] 2: EOF@8..8 "" [] [] ``` ## Diagnostics ``` structure_angle_bracket_null.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `<` > 1 │ [] │ ^ structure_angle_bracket_null.json:1:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `null` > 1 │ [] │ ^^^^ i Remove null structure_angle_bracket_null.json:1:7 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `>` > 1 │ [] │ ^ ```