--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [null, 1, "1", {}] ``` ## AST ``` JsonRoot { value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonNullValue { value_token: NULL_KW@1..5 "null" [] [], }, COMMA@5..7 "," [] [Whitespace(" ")], JsonNumberValue { value_token: JSON_NUMBER_LITERAL@7..8 "1" [] [], }, COMMA@8..10 "," [] [Whitespace(" ")], JsonStringValue { value_token: JSON_STRING_LITERAL@10..13 "\"1\"" [] [], }, COMMA@13..15 "," [] [Whitespace(" ")], JsonObjectValue { l_curly_token: L_CURLY@15..16 "{" [] [], json_member_list: JsonMemberList [], r_curly_token: R_CURLY@16..17 "}" [] [], }, ], r_brack_token: R_BRACK@17..18 "]" [] [], }, eof_token: EOF@18..18 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..18 0: JSON_ARRAY_VALUE@0..18 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..17 0: JSON_NULL_VALUE@1..5 0: NULL_KW@1..5 "null" [] [] 1: COMMA@5..7 "," [] [Whitespace(" ")] 2: JSON_NUMBER_VALUE@7..8 0: JSON_NUMBER_LITERAL@7..8 "1" [] [] 3: COMMA@8..10 "," [] [Whitespace(" ")] 4: JSON_STRING_VALUE@10..13 0: JSON_STRING_LITERAL@10..13 "\"1\"" [] [] 5: COMMA@13..15 "," [] [Whitespace(" ")] 6: JSON_OBJECT_VALUE@15..17 0: L_CURLY@15..16 "{" [] [] 1: JSON_MEMBER_LIST@16..16 2: R_CURLY@16..17 "}" [] [] 2: R_BRACK@17..18 "]" [] [] 1: EOF@18..18 "" [] [] ```