json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.43k stars 1.03k forks source link

RegisterTypeEncoder not working when marshal embedded field #566

Open klzwii opened 3 years ago

klzwii commented 3 years ago

I registered a Encoder for struct a, and embedded it in struct b, but it doesn't work when I try to marshal data to b.