--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [1.8011670033376514H-308] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonNumberValue { value_token: JSON_NUMBER_LITERAL@1..19 "1.8011670033376514" [] [], }, missing separator, JsonBogusValue { items: [ IDENT@19..20 "H" [] [], ], }, missing separator, JsonNumberValue { value_token: JSON_NUMBER_LITERAL@20..24 "-308" [] [], }, ], r_brack_token: R_BRACK@24..25 "]" [] [], }, eof_token: EOF@25..25 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..25 0: (empty) 1: JSON_ARRAY_VALUE@0..25 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..24 0: JSON_NUMBER_VALUE@1..19 0: JSON_NUMBER_LITERAL@1..19 "1.8011670033376514" [] [] 1: (empty) 2: JSON_BOGUS_VALUE@19..20 0: IDENT@19..20 "H" [] [] 3: (empty) 4: JSON_NUMBER_VALUE@20..24 0: JSON_NUMBER_LITERAL@20..24 "-308" [] [] 2: R_BRACK@24..25 "]" [] [] 2: EOF@25..25 "" [] [] ``` ## Diagnostics ``` number_with_alpha_char.json:1:20 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `H` > 1 │ [1.8011670033376514H-308] │ ^ i Remove H number_with_alpha_char.json:1:21 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected `,` but instead found `-308` > 1 │ [1.8011670033376514H-308] │ ^^^^ i Remove -308 ```