--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: missing (required), elements: JsonArrayElementList [ JsonObjectValue { l_curly_token: L_CURLY@0..1 "{" [] [], json_member_list: JsonMemberList [], r_curly_token: missing (required), }, missing separator, JsonBogusValue { items: [ R_BRACK@1..2 "]" [] [], ], }, ], r_brack_token: missing (required), }, eof_token: EOF@2..2 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..2 0: (empty) 1: JSON_ARRAY_VALUE@0..2 0: (empty) 1: JSON_ARRAY_ELEMENT_LIST@0..2 0: JSON_OBJECT_VALUE@0..1 0: L_CURLY@0..1 "{" [] [] 1: JSON_MEMBER_LIST@1..1 2: (empty) 1: (empty) 2: JSON_BOGUS_VALUE@1..2 0: R_BRACK@1..2 "]" [] [] 2: (empty) 2: EOF@2..2 "" [] [] ``` ## Diagnostics ``` structure_open_object_close_array.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a property but instead found ']'. > 1 │ {] │ ^ i Expected a property here. > 1 │ {] │ ^ ```