fix issue in package gjson for struct to map converting

This commit is contained in:
John
2020-06-18 20:40:24 +08:00
parent f28a76d470
commit 2c0cfa24b0
3 changed files with 7 additions and 23 deletions

View File

@ -74,7 +74,7 @@ func NewWithTag(data interface{}, tags string, safe ...bool) *Json {
i := interface{}(nil)
// Note that it uses Map function implementing the converting.
// Note that it here should not use MapDeep function if you really know what it means.
i = gconv.MapDeep(data, tags)
i = gconv.Map(data, tags)
j = &Json{
p: &i,
c: byte(gDEFAULT_SPLIT_CHAR),