Closed a5-stable closed 1 year ago
JsonPath.on({}, "[*]") #-> lib/jsonpath/enumerable.rb:88:in `%': divided by 0 (ZeroDivisionError)
Greetings, I got an error as above and I fixed it in this pr. this happens when node size is zero in jsonpath enumerable.
start_idx %= node.size end_idx %= node.size
Thanks @a5-stable
Greetings, I got an error as above and I fixed it in this pr. this happens when node size is zero in jsonpath enumerable.