--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {"": ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonObjectValue { l_curly_token: L_CURLY@0..1 "{" [] [], json_member_list: JsonMemberList [ JsonMember { name: JsonMemberName { value_token: JSON_STRING_LITERAL@1..3 "\"\"" [] [], }, colon_token: COLON@3..4 ":" [] [], value: missing (required), }, ], r_curly_token: missing (required), }, eof_token: EOF@4..4 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..4 0: (empty) 1: JSON_OBJECT_VALUE@0..4 0: L_CURLY@0..1 "{" [] [] 1: JSON_MEMBER_LIST@1..4 0: JSON_MEMBER@1..4 0: JSON_MEMBER_NAME@1..3 0: JSON_STRING_LITERAL@1..3 "\"\"" [] [] 1: COLON@3..4 ":" [] [] 2: (empty) 2: (empty) 2: EOF@4..4 "" [] [] ``` ## Diagnostics ``` structure_object_unclosed_no_value.json:1:5 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an array, an object, or a literal but instead found the end of the file. > 1 │ {"": │ i Expected an array, an object, or a literal here. > 1 │ {"": │ ```