fix(json): check for custom marshaler for ptr type

This commit is contained in:
yusing 2025-04-18 03:41:39 +08:00
parent 09177a69ac
commit f762b3e637

View file

@ -192,6 +192,9 @@ func appendArray(v reflect.Value, buf []byte) []byte {
}
func appendPtrInterface(v reflect.Value, buf []byte) []byte {
if res, ok := appendWithCustomMarshaler(v, buf); ok {
return res
}
return appendMarshal(v.Elem(), buf)
}