--- source: crates/rome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json {"foo\u0000bar": 42} ``` ## AST ``` JsonRoot { value: JsonObjectValue { l_curly_token: L_CURLY@0..1 "{" [] [], json_member_list: JsonMemberList [ JsonMember { name: JsonMemberName { value_token: JSON_STRING_LITERAL@1..15 "\"foo\\u0000bar\"" [] [], }, colon_token: COLON@15..17 ":" [] [Whitespace(" ")], value: JsonNumberValue { value_token: JSON_NUMBER_LITERAL@17..19 "42" [] [], }, }, ], r_curly_token: R_CURLY@19..20 "}" [] [], }, eof_token: EOF@20..20 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..20 0: JSON_OBJECT_VALUE@0..20 0: L_CURLY@0..1 "{" [] [] 1: JSON_MEMBER_LIST@1..19 0: JSON_MEMBER@1..19 0: JSON_MEMBER_NAME@1..15 0: JSON_STRING_LITERAL@1..15 "\"foo\\u0000bar\"" [] [] 1: COLON@15..17 ":" [] [Whitespace(" ")] 2: JSON_NUMBER_VALUE@17..19 0: JSON_NUMBER_LITERAL@17..19 "42" [] [] 2: R_CURLY@19..20 "}" [] [] 1: EOF@20..20 "" [] [] ```