This commit is contained in:
Daniel Smith
2019-07-19 15:34:30 -07:00
parent f55efb8dae
commit 3c81a9a1c9
16 changed files with 441 additions and 104 deletions

View File

@@ -117,7 +117,7 @@ func GuessBestListPathElement(index int, item value.Value) PathElement {
keys = append(keys, *f)
}
if len(keys) > 0 {
return PathElement{Key: keys}
return PathElement{Key: &value.Map{Items: keys}}
}
return PathElement{Index: &index}
}