--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [1 true] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonNumberValue { value_token: JSON_NUMBER_LITERAL@1..3 "1" [] [Whitespace(" ")], }, missing separator, JsonBooleanValue { value_token: TRUE_KW@3..7 "true" [] [], }, ], 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_NUMBER_VALUE@1..3 0: JSON_NUMBER_LITERAL@1..3 "1" [] [Whitespace(" ")] 1: (empty) 2: JSON_BOOLEAN_VALUE@3..7 0: TRUE_KW@3..7 "true" [] [] 2: R_BRACK@7..8 "]" [] [] 2: EOF@8..8 "" [] [] ``` ## Diagnostics ``` array_1_true_without_comma.json:1:4 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `true` > 1 │ [1 true] │ ^^^^ i Remove true ```