--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json ["\{["\{["\{["\{ ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonBogusValue { items: [ ERROR_TOKEN@1..6 "\"\\{[\"" [] [], ERROR_TOKEN@6..7 "\\" [] [], ], }, missing separator, JsonObjectValue { l_curly_token: L_CURLY@7..8 "{" [] [], json_member_list: JsonMemberList [ JsonMember { name: missing (required), colon_token: missing (required), value: JsonArrayValue { l_brack_token: L_BRACK@8..9 "[" [] [], elements: JsonArrayElementList [ JsonBogusValue { items: [ ERROR_TOKEN@9..14 "\"\\{[\"" [] [], ERROR_TOKEN@14..15 "\\" [] [], ], }, missing separator, JsonObjectValue { l_curly_token: L_CURLY@15..16 "{" [] [], json_member_list: JsonMemberList [], r_curly_token: missing (required), }, ], r_brack_token: missing (required), }, }, ], r_curly_token: missing (required), }, ], r_brack_token: missing (required), }, eof_token: EOF@16..16 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..16 0: (empty) 1: JSON_ARRAY_VALUE@0..16 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..16 0: JSON_BOGUS_VALUE@1..7 0: ERROR_TOKEN@1..6 "\"\\{[\"" [] [] 1: ERROR_TOKEN@6..7 "\\" [] [] 1: (empty) 2: JSON_OBJECT_VALUE@7..16 0: L_CURLY@7..8 "{" [] [] 1: JSON_MEMBER_LIST@8..16 0: JSON_MEMBER@8..16 0: (empty) 1: (empty) 2: JSON_ARRAY_VALUE@8..16 0: L_BRACK@8..9 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@9..16 0: JSON_BOGUS_VALUE@9..15 0: ERROR_TOKEN@9..14 "\"\\{[\"" [] [] 1: ERROR_TOKEN@14..15 "\\" [] [] 1: (empty) 2: JSON_OBJECT_VALUE@15..16 0: L_CURLY@15..16 "{" [] [] 1: JSON_MEMBER_LIST@16..16 2: (empty) 2: (empty) 2: (empty) 2: (empty) 2: EOF@16..16 "" [] [] ``` ## Diagnostics ``` structure_open_open.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an array, an object, or a literal but instead found '"\{["\'. > 1 │ ["\{["\{["\{["\{ │ ^^^^^^ i Expected an array, an object, or a literal here. > 1 │ ["\{["\{["\{["\{ │ ^^^^^^ structure_open_open.json:1:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Invalid escape sequence > 1 │ ["\{["\{["\{["\{ │ ^^ i Valid escape sequences are: `\\`, `\/`, `/"`, `\b\`, `\f`, `\n`, `\r`, `\t` or any unicode escape sequence `\uXXXX` where X is hexedecimal number. structure_open_open.json:1:7 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `\` > 1 │ ["\{["\{["\{["\{ │ ^ structure_open_open.json:1:8 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `{` > 1 │ ["\{["\{["\{["\{ │ ^ i Remove { structure_open_open.json:1:9 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a property but instead found '['. > 1 │ ["\{["\{["\{["\{ │ ^ i Expected a property here. > 1 │ ["\{["\{["\{["\{ │ ^ structure_open_open.json:1:10 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an array, an object, or a literal but instead found '"\{["\'. > 1 │ ["\{["\{["\{["\{ │ ^^^^^^ i Expected an array, an object, or a literal here. > 1 │ ["\{["\{["\{["\{ │ ^^^^^^ structure_open_open.json:1:11 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Invalid escape sequence > 1 │ ["\{["\{["\{["\{ │ ^^ i Valid escape sequences are: `\\`, `\/`, `/"`, `\b\`, `\f`, `\n`, `\r`, `\t` or any unicode escape sequence `\uXXXX` where X is hexedecimal number. structure_open_open.json:1:15 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × unexpected character `\` > 1 │ ["\{["\{["\{["\{ │ ^ structure_open_open.json:1:16 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `{` > 1 │ ["\{["\{["\{["\{ │ ^ i Remove { structure_open_open.json:1:17 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `}` but instead the file ends > 1 │ ["\{["\{["\{["\{ │ i the file ends here > 1 │ ["\{["\{["\{["\{ │ ```