--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {"id":0,} ``` ## 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 "\"id\"" [] [], }, colon_token: COLON@5..6 ":" [] [], value: JsonNumberValue { value_token: JSON_NUMBER_LITERAL@6..7 "0" [] [], }, }, COMMA@7..8 "," [] [], ], 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..7 0: JSON_MEMBER_NAME@1..5 0: JSON_STRING_LITERAL@1..5 "\"id\"" [] [] 1: COLON@5..6 ":" [] [] 2: JSON_NUMBER_VALUE@6..7 0: JSON_NUMBER_LITERAL@6..7 "0" [] [] 1: COMMA@7..8 "," [] [] 2: R_CURLY@8..9 "}" [] [] 2: EOF@9..9 "" [] [] ``` ## Diagnostics ``` object_trailing_comma.json:1:9 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a property but instead found '}'. > 1 │ {"id":0,} │ ^ i Expected a property here. > 1 │ {"id":0,} │ ^ ```