jsonpath-rust icon indicating copy to clipboard operation
jsonpath-rust copied to clipboard

Maybe support JSONPath_Plus?

Open bwinton opened this issue 1 year ago • 1 comments

Let me start off by saying that I really like this library! It's been very helpful in the week or so since I started using it!

But there are a couple of tasks I was trying to do that I don't think are currently supported, but could be… The first one is to search for all the fields of a specific type, and then show a sibling element, like components.[?(@.componentType == \"date-input\")].^.name (if ^ was the parent, and there was a name beside the element). The second one was to search for items that had been translated with something like $.fields.[?(@.~ != \"en-US\")].*

It looks like JSONPath_Plus could support both of those, and I was wondering if that's something you'd be open to implementing?

bwinton avatar Jul 23 '24 19:07 bwinton

Thanks! The idea is interesting. We can pull it in.

besok avatar Jul 24 '24 18:07 besok