--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {1:1} ``` ## AST ``` JsonRoot { value: JsonObjectValue { l_curly_token: L_CURLY@0..1 "{" [] [], json_member_list: JsonMemberList [ JsonMember { name: missing (required), colon_token: missing (required), value: JsonNumberValue { value_token: JSON_NUMBER_LITERAL@1..2 "1" [] [], }, }, missing separator, JsonMember { name: missing (required), colon_token: COLON@2..3 ":" [] [], value: JsonNumberValue { value_token: JSON_NUMBER_LITERAL@3..4 "1" [] [], }, }, ], r_curly_token: R_CURLY@4..5 "}" [] [], }, eof_token: EOF@5..5 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..5 0: JSON_OBJECT_VALUE@0..5 0: L_CURLY@0..1 "{" [] [] 1: JSON_MEMBER_LIST@1..4 0: JSON_MEMBER@1..2 0: (empty) 1: (empty) 2: JSON_NUMBER_VALUE@1..2 0: JSON_NUMBER_LITERAL@1..2 "1" [] [] 1: (empty) 2: JSON_MEMBER@2..4 0: (empty) 1: COLON@2..3 ":" [] [] 2: JSON_NUMBER_VALUE@3..4 0: JSON_NUMBER_LITERAL@3..4 "1" [] [] 2: R_CURLY@4..5 "}" [] [] 1: EOF@5..5 "" [] [] ``` ## Diagnostics ``` object_non_string_key.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected a property but instead found '1' > 1 │ {1:1} │ ^ i Expected a property here > 1 │ {1:1} │ ^ object_non_string_key.json:1:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `:` > 1 │ {1:1} │ ^ i Remove : ```