From 03713a136f61f9b25f97998a11ea54a9353628c8 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 23 Dec 2024 20:38:59 +0300 Subject: [PATCH] add codec.RawMessage support Signed-off-by: Vasiliy Tolstov --- json.go | 1 + 1 file changed, 1 insertion(+) diff --git a/json.go b/json.go index 7c29e25..29b4922 100644 --- a/json.go +++ b/json.go @@ -116,6 +116,7 @@ func (c *jsonCodec) Unmarshal(b []byte, v interface{}, opts ...codec.Option) err return nil case codec.RawMessage: copy(m, b) + return nil } unmarshalOptions := DefaultUnmarshalOptions