mirror of
https://github.com/json-iterator/go.git
synced 2025-05-31 22:24:53 +02:00
fix -,
This commit is contained in:
parent
09cb1d9236
commit
fb382c0ec1
@ -238,7 +238,7 @@ func describeStruct(cfg *frozenConfig, typ reflect.Type) (*StructDescriptor, err
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
tagParts := strings.Split(field.Tag.Get("json"), ",")
|
tagParts := strings.Split(field.Tag.Get("json"), ",")
|
||||||
fieldNames := calcFieldNames(field.Name, tagParts[0], string(field.Tag))
|
fieldNames := calcFieldNames(field.Name, tagParts[0], string(field.Tag.Get("json")))
|
||||||
fieldCacheKey := fmt.Sprintf("%s/%s", typ.String(), field.Name)
|
fieldCacheKey := fmt.Sprintf("%s/%s", typ.String(), field.Name)
|
||||||
decoder := fieldDecoders[fieldCacheKey]
|
decoder := fieldDecoders[fieldCacheKey]
|
||||||
if decoder == nil {
|
if decoder == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user