-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow dot notation without root in Proposal A #45
Comments
I must admit with Proposal A so far I've been conservative and restrictive. While this might make it easier for implementers, it does not favour the user. So, I'm happy to open up a little. Dot child without the root so far is the only case I could come up with as a short form. As such I feel introducing a single exception might provide more headache than help. If we see other short forms, that concern would be void though. Do we have others? |
Perhaps |
Here is k8s dialect of JsonPath, and it oficially allows to omit root (k8s uses exponent-io/jsonpath - seems we don't have it in the table yet). |
As for me, root can be easily omitted in outer expressions ( |
The OP was about eliding the dot from a dot child at the start of a JSONPath and assumed, perhaps incorrectly, that the root ( |
I think that make |
Where is (I spent half an hour a while back trying to add the k8s client jsonpath to the table, but I lost the will to live trying to suss out the usages of |
I've just looked into it's |
As far as kubectl is concerned, |
Many of the implementations allow eliding the dot where a dot child appears at the start of the path. See https://cburgmer.github.io/json-path-comparison/results/dot_notation_without_root.html.
This seems like reasonable syntactic sugar and I'd like it to be considered for Proposal A. If this proposal is rejected, it would be great to document the rational.
The text was updated successfully, but these errors were encountered: