--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {"a" "b"} ``` ## 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..5 "\"a\"" [] [Whitespace(" ")], }, colon_token: missing (required), value: JsonStringValue { value_token: JSON_STRING_LITERAL@5..8 "\"b\"" [] [], }, }, ], r_curly_token: R_CURLY@8..9 "}" [] [], }, eof_token: EOF@9..9 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..9 0: (empty) 1: JSON_OBJECT_VALUE@0..9 0: L_CURLY@0..1 "{" [] [] 1: JSON_MEMBER_LIST@1..8 0: JSON_MEMBER@1..8 0: JSON_MEMBER_NAME@1..5 0: JSON_STRING_LITERAL@1..5 "\"a\"" [] [Whitespace(" ")] 1: (empty) 2: JSON_STRING_VALUE@5..8 0: JSON_STRING_LITERAL@5..8 "\"b\"" [] [] 2: R_CURLY@8..9 "}" [] [] 2: EOF@9..9 "" [] [] ``` ## Diagnostics ``` object_missing_semicolon.json:1:6 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `:` but instead found `"b"` > 1 │ {"a" "b"} │ ^^^ i Remove "b" ```