mirror of
https://github.com/json-iterator/go.git
synced 2024-11-24 08:22:14 +02:00
parent
cfaa11f837
commit
401a56bc20
@ -200,7 +200,7 @@ func describeStruct(cfg *frozenConfig, typ reflect.Type) (*StructDescriptor, err
|
||||
bindings := []*Binding{}
|
||||
for i := 0; i < typ.NumField(); i++ {
|
||||
field := typ.Field(i)
|
||||
if field.Anonymous {
|
||||
if field.Anonymous && field.Tag.Get("json") == "" {
|
||||
if field.Type.Kind() == reflect.Struct {
|
||||
structDescriptor, err := describeStruct(cfg, field.Type)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user