mirror of https://github.com/goccy/go-json.git
revert vm OpStructFieldOmitEmptyMarshalJSON
This commit is contained in:
parent
ac14c18dbb
commit
d12ffe2c66
|
@ -3646,13 +3646,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
code = code.NextField
|
||||
break
|
||||
}
|
||||
iface := ptrToInterface(code, p)
|
||||
if code.Nilcheck && encoder.IsNilForMarshaler(iface) {
|
||||
code = code.NextField
|
||||
break
|
||||
}
|
||||
b = append(b, code.EscapedKey...)
|
||||
bb, err := appendMarshalJSON(code, b, iface, true)
|
||||
bb, err := appendMarshalJSON(code, b, ptrToInterface(code, p), true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue