I know that [start:stop] using negative indices is an ok workaround if we have control over the input. Given that gval and jsonpath is meant for end-users to input business logic it would be nice to expose full jsonpath engine and not jsonpath minus some features.
Hi,
How would one go about to get support for the
[@.length - n]
syntax illustrated @ https://goessner.net/articles/JsonPath/I know that
[start:stop]
using negative indices is an ok workaround if we have control over the input. Given that gval and jsonpath is meant for end-users to input business logic it would be nice to exposefull jsonpath
engine and notjsonpath minus some features
.https://go.dev/play/p/tDVmCrg6_OJ
=>
PS. Awesome work with both gval and jsonpath; Amazing libraries!