--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [ true, fals ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..2 "[" [] [Whitespace(" ")], elements: JsonArrayElementList [ JsonBooleanValue { value_token: TRUE_KW@2..6 "true" [] [], }, COMMA@6..8 "," [] [Whitespace(" ")], JsonBogusValue { items: [ IDENT@8..12 "fals" [] [], ], }, ], r_brack_token: missing (required), }, eof_token: EOF@12..12 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..12 0: (empty) 1: JSON_ARRAY_VALUE@0..12 0: L_BRACK@0..2 "[" [] [Whitespace(" ")] 1: JSON_ARRAY_ELEMENT_LIST@2..12 0: JSON_BOOLEAN_VALUE@2..6 0: TRUE_KW@2..6 "true" [] [] 1: COMMA@6..8 "," [] [Whitespace(" ")] 2: JSON_BOGUS_VALUE@8..12 0: IDENT@8..12 "fals" [] [] 2: (empty) 2: EOF@12..12 "" [] [] ``` ## Diagnostics ``` structure_unclosed_array_unfinished_false.json:1:9 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × String values must be double quoted. > 1 │ [ true, fals │ ^^^^ structure_unclosed_array_unfinished_false.json:1:13 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `]` but instead the file ends > 1 │ [ true, fals │ i the file ends here > 1 │ [ true, fals │ ```