--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {a: "b"} ``` ## AST ``` JsonRoot { value: JsonBogusValue { items: [ L_CURLY@0..1 "{" [] [], JsonBogus { items: [ JsonBogus { items: [ JsonBogus { items: [ IDENT@1..2 "a" [] [], ], }, COLON@2..4 ":" [] [Whitespace(" ")], JsonStringValue { value_token: JSON_STRING_LITERAL@4..7 "\"b\"" [] [], }, ], }, ], }, R_CURLY@7..8 "}" [] [], ], }, eof_token: EOF@8..8 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..8 0: JSON_BOGUS_VALUE@0..8 0: L_CURLY@0..1 "{" [] [] 1: JSON_BOGUS@1..7 0: JSON_BOGUS@1..7 0: JSON_BOGUS@1..2 0: IDENT@1..2 "a" [] [] 1: COLON@2..4 ":" [] [Whitespace(" ")] 2: JSON_STRING_VALUE@4..7 0: JSON_STRING_LITERAL@4..7 "\"b\"" [] [] 2: R_CURLY@7..8 "}" [] [] 1: EOF@8..8 "" [] [] ``` ## Diagnostics ``` object_unquoted_key.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Property key must be double quoted > 1 │ {a: "b"} │ ^ ```