diff --git a/decode_test.go b/decode_test.go index a0b337b..9c33775 100644 --- a/decode_test.go +++ b/decode_test.go @@ -1346,3 +1346,16 @@ func TestInvalidUnmarshalText(t *testing.T) { } } } + +func TestDecodeSingleQuoteStringInterface(t *testing.T) { + buf := []byte(`{ 'key': 'value' }`) + got := make(map[string]interface{}) + err := Unmarshal(buf, &got) + if err != nil { + t.Errorf("Unmarshal: %v", err) + } + want := map[string]interface{}{"key": "value"} + if !reflect.DeepEqual(got, want) { + t.Errorf("Unmarshal = %q; want %q", got, want) + } +}