hey,
seems like root array with filter exp doesn't work
here's an example:
arr := []map[string]interface{}{
{
"id": 1,
"foo": map[string]interface{}{
"bar": "baz",
},
},
}
obj := map[string][]map[string]interface{}{
"obj": arr,
}
// yields result
jsonpath.JsonPathLookup(obj, "$.obj[?(@.id == 1)]")
// yields no result
jsonpath.JsonPathLookup(arr, path, "$.[?(@.id == 1)]")
thanks!