list object 解析成[]map[string]interface{}
This commit is contained in:
parent
911ff18b5a
commit
a29a211ee5
@ -95,6 +95,10 @@ func (jg *JSON2GO) parseArray(key string, parseResult gjson.Result) {
|
||||
return
|
||||
}
|
||||
}
|
||||
// 对象,重新
|
||||
if dataType == "object" {
|
||||
dataType = "map[string]interface{}"
|
||||
}
|
||||
// 所有数据类型都一致
|
||||
if len(key) == 0 {
|
||||
jg.append("[]" + dataType)
|
||||
|
Loading…
Reference in New Issue
Block a user