--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json ["x", truth] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonStringValue { value_token: JSON_STRING_LITERAL@1..4 "\"x\"" [] [], }, COMMA@4..6 "," [] [Whitespace(" ")], JsonBogusValue { items: [ IDENT@6..11 "truth" [] [], ], }, ], r_brack_token: R_BRACK@11..12 "]" [] [], }, eof_token: EOF@12..12 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..12 0: (empty) 1: JSON_ARRAY_VALUE@0..12 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..11 0: JSON_STRING_VALUE@1..4 0: JSON_STRING_LITERAL@1..4 "\"x\"" [] [] 1: COMMA@4..6 "," [] [Whitespace(" ")] 2: JSON_BOGUS_VALUE@6..11 0: IDENT@6..11 "truth" [] [] 2: R_BRACK@11..12 "]" [] [] 2: EOF@12..12 "" [] [] ``` ## Diagnostics ``` object_bad_value.json:1:7 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × String values must be double quoted. > 1 │ ["x", truth] │ ^^^^^ ```