diff --git a/decoder_test.go b/decoder_test.go index 9a2cd84..bd0301f 100644 --- a/decoder_test.go +++ b/decoder_test.go @@ -201,6 +201,10 @@ func TestDecoderDecode(t *testing.T) { }, }) + // Object key with backslashes + decode(`{"a\"b":0}`, &any) + assert(any, map[string]interface{}{`a"b`: 0.0}) + ms := make(map[string]string) decode(`{"hello": "world"}`, &ms) assert(ms, map[string]string{