-
Notifications
You must be signed in to change notification settings - Fork 16
Unify JSON Range Units #47
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
Comments
Also, any range unit should also make sure it supports: #45 |
The issue now is that the In We need to decide on one of them and then make the specs consistent. |
I think the idea of this issue is to introduce a new range unit name (you renamed the issue, so it is slightly confusing now). |
I'm sorry that the change in this issue's title wasn't clear. The previous title started from the assumption that the In other words, we have two range units that want to be called Does that clear up the change in this issue's title for you? Are you ok with that? |
Is there a PR or specific proposal on this? The ".foo" syntax is preferred, IMO, because it is a more common way to specify JSON paths. For example, some common tools:
In other words, I think RFC6901 JSON Pointer is now considered an "obscure syntax" for JSON path specifiers in 2021.
I think it would be confusing to have a line that says |
There's also an IETF Working Group for JSONPath, which formed just this year. It uses the javascript dot and brackets notation:
The |
To resolve #29 and #23 @toomim and I discussed that he should make an alternative proposal for a range unit (a fork) which has slightly different approach:
.
instead of/
to represent the path.I prefer to keep
json
range unit compatible with JSON pointer (and JSON patch). So let's have both for now and see where we go from there.Also, BTW, if we are defining a new path format, why not just make it JSON and have it be instead of
.foo.bar
or/foo/bar
be simply["foo", "bar"]
. Easy to read, easy to write, and all escaping rules are already defined.The text was updated successfully, but these errors were encountered: