Closed ayadav111 closed 1 year ago
Please re-check the documentation https://pkg.go.dev/github.com/ohler55/ojg/jp#Script. The length function is supported in OjG. You can construct a script directly or length(@.x)
can be used in a filter expression.
Can this be closed?
Hi,
I am using your library for JSON path filter and I wanted to use length functionality sothat it can provides the length of an array in a given JSON but I couldn't find out.
length() | Provides the length of an array | Integer -- | -- | --Jayway jsonpath is having this functionality. ref: https://github.com/json-path/JsonPath Can we have the same here ? Thank you!