fixed bug in json filter
This commit is contained in:
parent
8edf5eb642
commit
6b181f094b
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ func getFilterResultXPath(s string, filter *Filter, newStrings *[]string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getFilterResultJSON(s string, filter *Filter, newStrings *[]string) {
|
func getFilterResultJSON(s string, filter *Filter, newStrings *[]string) {
|
||||||
for _, result := range gjson.GetMany(filter.From) {
|
|
||||||
|
for _, result := range gjson.Get(s, filter.From).Array() {
|
||||||
*newStrings = append(*newStrings, result.String())
|
*newStrings = append(*newStrings, result.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue