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