From 6d210f10fd352e9259ae87fb05ca65cca93088dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 24 Jan 2023 19:36:52 +0100 Subject: [PATCH] Failing test: decoding object key with embeded " --- decoder_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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{