--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [-123.123foo] ``` ## AST ``` JsonRoot { value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonNumberValue { value_token: JSON_NUMBER_LITERAL@1..9 "-123.123" [] [], }, missing separator, JsonBogusValue { items: [ IDENT@9..12 "foo" [] [], ], }, ], r_brack_token: R_BRACK@12..13 "]" [] [], }, eof_token: EOF@13..13 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..13 0: JSON_ARRAY_VALUE@0..13 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..12 0: JSON_NUMBER_VALUE@1..9 0: JSON_NUMBER_LITERAL@1..9 "-123.123" [] [] 1: (empty) 2: JSON_BOGUS_VALUE@9..12 0: IDENT@9..12 "foo" [] [] 2: R_BRACK@12..13 "]" [] [] 1: EOF@13..13 "" [] [] ``` ## Diagnostics ``` number_invalid-negative-real.json:1:10 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `foo` > 1 │ [-123.123foo] │ ^^^ i Remove foo ```