We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9d62f1 + 791f1e6 commit d6d59b1Copy full SHA for d6d59b1
map.go
@@ -97,7 +97,7 @@ func getMapOfAllKeyValues(s interface{}) *map[string]interface{} {
97
s := reflect.ValueOf(v)
98
// iterate through the slice
99
for i := 0; i < s.Len(); i++ {
100
- if t.Field(i).CanInterface() {
+ if s.Index(i).CanInterface() {
101
m := getMapOfAllKeyValues(s.Index(i).Interface()) // get the map value of the object, recursively
102
if m != nil {
103
sliceOfMap = append(sliceOfMap, *m) // append to the slice
0 commit comments